Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC20 → Get Allowance

AI-generated

Summary

Returns the ERC20 allowance of an owner for a spender.

Inputs

  • tokenAddress (required) — Address of the ERC20 token contract
  • spender (required) — Address of the spender account
  • owner (required) — Address of the token owner

Output shape

a single allowance value (uint256) returned as a string

The allowance may be large; returned as a string to preserve full precision

Examples

Example 1: Check token allowance before approving a transfer

tokenAddress: 0xToken123..., spender: 0xSpender456..., owner: 0xOwner789...

Links

Discussion