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.
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. |