asa_optin_txn
Build an unsigned Algorand Standard Asset opt-in transaction. Send a zero-amount self transfer to opt an account into an ASA on Algorand or Voi mainnet.
Instructions
Build an unsigned ASA opt-in (0-amount self transfer).
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>"
},
"name": "asa_optin_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional UTF-8 note field on the transaction. | |
| sender | Yes | Account opting in (receiver = sender). | |
| assetId | Yes | ASA asset ID. | |
| network | Yes | Algorand or Voi mainnet identifier. |