asa_closeout_txn
Build an unsigned ASA transfer that closes a sender's asset holding by moving the full balance to a receiver and setting a close-to address. Supports Algorand and Voi mainnets.
Instructions
Build an unsigned ASA transfer that closes the sender's holding (set closeRemainderTo). Supply full balance as amount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network": "<network>",
"sender": "<sender>",
"assetId": "<assetId>",
"receiver": "<receiver>",
"amount": "<amount>",
"closeTo": "<closeTo>"
},
"name": "asa_closeout_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional UTF-8 note field on the transaction. | |
| amount | Yes | Whole balance to move in base units. | |
| sender | Yes | 58-character AVM account address. | |
| assetId | Yes | ASA asset ID. | |
| closeTo | Yes | Close-to address (often same as receiver for a full close). | |
| network | Yes | Algorand or Voi mainnet identifier. | |
| receiver | Yes | Receives the ASA amount. |