getTokenAllowance

Get the amount of ERC20 tokens which the spender is allowed to withdraw from the owner

Parameters

  • contractAddress :(string) REQUIRED - The token contract address

  • ownerAddress: (string) REQUIRED - The address of the token owner

  • spenderAddress: (string) REQUIRED - The address of the token spender

Returns

  • allowance: <string> - The allowance amount

Example Request and Result for getTokenAllowance

Request

curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getTokenAllowance?contractAddress=0x013062189dc3dcc99e9Cee714c513033b8d99e3c&ownerAddress=0xf16E9B0D03470827A95CDfd0Cb8a8A3b46969B91&spenderAddress=0x013062189dc3dcc99e9Cee714c513033b8d99e3c'

Result

{
    "allowance": "0"
}

Last updated