getERC20Allowance
Check the approved ERC20 token spending limit for a spender address on Ethereum networks. Input token, owner, and spender addresses to retrieve allowance details for wallet management.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used. | |
ownerAddress | Yes | The Ethereum address that owns the tokens | |
provider | No | Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value. | |
spenderAddress | Yes | The Ethereum address that is approved to spend tokens | |
tokenAddress | Yes | The address of the ERC20 token contract |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used.",
"type": "number"
},
"ownerAddress": {
"description": "The Ethereum address that owns the tokens",
"type": "string"
},
"provider": {
"description": "Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.",
"type": "string"
},
"spenderAddress": {
"description": "The Ethereum address that is approved to spend tokens",
"type": "string"
},
"tokenAddress": {
"description": "The address of the ERC20 token contract",
"type": "string"
}
},
"required": [
"tokenAddress",
"ownerAddress",
"spenderAddress"
],
"type": "object"
}