Send QUAI (Two-Step Confirmation)
send_transactionSend QUAI from a stored wallet to any recipient address. Preview the transaction first, then confirm with password to sign and broadcast; handles cross-zone and QUAI-to-Qi conversions automatically.
Instructions
Send QUAI from a wallet in this server's encrypted store to a recipient address. Because Quai is sharded, the recipient may be in a different zone than the sender; if so, this is an external transaction (ETX) and is handled automatically by the network, just with slower finality than a same-zone send. If the recipient is a Qi-ledger address instead of a QUAI-ledger one, this is instead a QUAI -> Qi conversion (Quai's native "swap" between its two ledgers) -- the preview will say so and estimate what you'll receive in Qi (see get_conversion_rate for a quote without sending). This tool ALWAYS requires two calls: first without "confirm" (no password needed yet) to get a preview -- amounts, zones, estimated gas, a confirmationToken; then again with confirm: true, that same confirmationToken, and the wallet's password, to actually decrypt the key, sign, and send. The password is only ever used in-memory for that one call and is never stored or logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient Quai address. | |
| amount | Yes | Amount to send, in QUAI (e.g. "1.5"), not wei. | |
| confirm | No | Set true only on the second call, together with confirmationToken and password, to actually broadcast. | |
| network | No | Which Quai network to query: "mainnet" or "testnet" (the Orchard testnet). Defaults to mainnet. | mainnet |
| password | No | The wallet's password. Required only on the confirm: true call, to decrypt the key and sign. | |
| walletName | Yes | The name of a wallet previously created with create_wallet or import_wallet (see list_wallets). | |
| confirmationToken | No | The token returned by the initial preview call. Required when confirm is true. |