arc200_approve_txn
Authorize a spender with an ARC-200 approve transaction. Simulates the owner's approval and returns an unsigned payload ready for signing.
Instructions
Simulate ARC-200 approve(spender, amount); owner signs.
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>",
"appId": "<appId>",
"owner": "<owner>",
"spender": "<spender>",
"amount": "<amount>"
},
"name": "arc200_approve_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | Application ID of the ARC-200 or ARC-72 contract. | |
| owner | Yes | 58-character AVM account address. | |
| amount | Yes | Amount in base units (string) to avoid JS safe integer limits. | |
| network | Yes | Algorand or Voi mainnet identifier. | |
| spender | Yes |