getAllowance
Retrieve the ERC20 token allowance between an owner and spender address. Specify token, owner, spender, and optionally the chainId for multi-chain support.
Instructions
Gets the ERC20 token allowance between an owner and spender
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | If not specified, returns approval for all supported chains. | |
owner | Yes | The token owner's address | |
spender | Yes | The spender's address | |
token | Yes | The token address |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "If not specified, returns approval for all supported chains.",
"type": "number"
},
"owner": {
"description": "The token owner's address",
"type": "string"
},
"spender": {
"description": "The spender's address",
"type": "string"
},
"token": {
"description": "The token address",
"type": "string"
}
},
"required": [
"token",
"owner",
"spender"
],
"type": "object"
}