Comment on page
getTokenAllowance
Get the amount of ERC20 tokens which the spender is allowed to withdraw from the owner
contractAddress
:(string)
REQUIRED - The token contract addressownerAddress
:(string)
REQUIRED - The address of the token ownerspenderAddress
:(string)
REQUIRED - The address of the token spender
allowance
:<string>
- The allowance amount
Request
curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getTokenAllowance?contractAddress=0x013062189dc3dcc99e9Cee714c513033b8d99e3c&ownerAddress=0xf16E9B0D03470827A95CDfd0Cb8a8A3b46969B91&spenderAddress=0x013062189dc3dcc99e9Cee714c513033b8d99e3c'
Result
{
"allowance": "0"
}
Last modified 1mo ago