approve_token_spending
Authorize token spending for trading on Paloma DEX by approving specific amounts for designated contracts across multiple blockchain networks.
Instructions
Approve token spending for trading (two-step approval process).
Args:
chain_id: Chain ID (1, 10, 56, 100, 137, 8453, 42161)
token_address: Address of token to approve
spender_address: Address that will spend the tokens (typically Trader contract)
amount: Amount to approve in wei (defaults to unlimited)
Returns:
JSON string with approval transaction details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | Yes | ||
| token_address | Yes | ||
| spender_address | Yes | ||
| amount | No |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Amount"
},
"chain_id": {
"title": "Chain Id",
"type": "string"
},
"spender_address": {
"title": "Spender Address",
"type": "string"
},
"token_address": {
"title": "Token Address",
"type": "string"
}
},
"required": [
"chain_id",
"token_address",
"spender_address"
],
"type": "object"
}