send_token
Sends shielded tokens from a wallet to another shielded address with a sponsor paying the fee, then submits the proven transfer and returns settlement status and receipt for payouts or invoices.
Instructions
Send an amount of a shielded token from this wallet to another shielded address, with the sponsor paying the fee: a payout, a salary, an invoice settlement. The transfer is built and proven here from the wallet's coins (at most maxInputs of them); only the fee-unpaid bytes go to the server, which records the declared type and amount and submits. The recipient needs nothing but its address. Needs sponsorTransfer in the grant, the type on the sponsor's list and NIGHTGATE 0.39.0. The tool also waits for the block (about a minute more) and then carries the instance's signed receipt; if that wait runs out, receipt is null and the same call again fetches it. The tool waits until the job settled (about 1 minute) and returns { status, txHash, transactionHash, result }. failed: next says what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). A second, separate call with the same arguments needs a new idempotencyKey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The recipient's shielded address (mn_shield-addr_...), as its get_attester_identity or get_swap_wallet shows it | |
| amount | Yes | Atoms to send; a decimal string is exact | |
| tokenType | Yes | Raw token type (64 hex), what derive_token_type or mint_token returns | |
| idempotencyKey | No | Dedupes retries |