ERC20 Approvals

Fetch ERC20 approvals from the last 10 minutes

curl -s --location --request GET \
    "https://app.pangea.foundation/v1/api/erc20/approvals?chains=eth&from_block=-36" \
    --header "Accept: application/jsonstream" \
    --header "Accept-Encoding: gzip" --compressed \
    --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

[ 
  ...
  {
    "chain": 1,
    "block_number": 18833914,
    "block_hash": "0xfaab9ae75ef071f6372c985f63a4bf1130cd1bdf93ce5d44fbd112f9b881ba72",
    "transaction_hash": "0x978eddad7453920c722a997b693ddcb5851129b9341a862a9901ba31bcadadd1",
    "transaction_index": 101,
    "log_index": 247,
    "address": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
    "name": "Liquid staked Ether 2.0",
    "symbol": "stETH",
    "decimals": 18,
    "owner": "0xe37e799d5077682fa0a244d46e5649f71457bd09",
    "spender": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
    "value": 103.06464599469388
  }
]

Query Parameters

v1/api/erc20/approvals

  • chains: This parameter is used to filter the data by specific blockchain networks.
  • from_block: This parameter is used to filter the data by a starting block number.
  • to_block: This parameter is used to filter the data by an ending block number.
  • address__in: This parameter is used to filter the data by a list of addresses.
  • owner__in: This parameter is used to filter the data by a list of addresses of the token owners.
  • spender__in: This parameter is used to filter the data by a list of addresses being granted approval to spend the owner's tokens.
  • value__gte: This parameter is used to filter the data by a minimum value for the amount approved.
  • value__lte: This parameter is used to filter the data by a maximum value for the amount approved.
  • symbol__in: This parameter is used to filter the data by a list of token symbols.
  • name__in: This parameter is used to filter the data by a list of token names.
  • decimals__gte: This parameter is used to filter the data by a minimum value for decimals.
  • decimals__lte: This parameter is used to filter the data by a maximum value for decimals.