Get the on-chain ERC-20 allowance for a token, owner and spender
Reads allowance(owner, spender) on the ERC-20 token contract. Can be used to determine whether an approval transaction is needed before a swap or token sale.
Authorizations
OAuth 2.0 authorization and token endpoints
Query Parameters
The ERC-20 token contract address
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
The address owning the tokens
"0x8ba1f109551bd432803012645ac136ddd64dba72"
The address allowed to spend the tokens
"0x742d35cc6634c0532925a3b844bc9e7595f0beb1"
The EVM chain to read from, e.g. ethereum_mainnet, ethereum_sepolia, base_mainnet or base_sepolia
"ethereum_sepolia"
Response
Successful response.
Current on-chain ERC-20 allowance for a token, owner and spender.