wallet_optin_asset
Opts the active wallet into an Algorand asset by creating, signing, and submitting the opt-in transaction using the specified asset ID and network.
Instructions
Opt the active wallet account into an asset by ID. Creates, signs, and submits the opt-in transaction.
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": {
"assetId": "<assetId>"
},
"name": "wallet_optin_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | Asset ID to opt the active account into | |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |