approve_token_evm
Authorize token spending on VeChain by approving specific amounts for designated addresses to enable transactions and smart contract interactions.
Instructions
Approve an amount (specified in base units) of an ERC20 token for a spender
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenAddress | Yes | ||
| spender | Yes | ||
| amount | Yes |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"pattern": "^\\d+$",
"type": "string"
},
"spender": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"tokenAddress": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
},
"required": [
"tokenAddress",
"spender",
"amount"
],
"type": "object"
}