ERC20 Metadata

Fetch ERC20 metadata from block 20000000.

There is no block range limit on this endpoint.

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

Response

[ 
  ...
  {
    "chain": 1,
    "first_seen_block_number": 10251037,
    "first_seen_block_hash": "0x38d248ec5f17386784f1549d4d2d681b3d5c3f75eca5767bfaf46f983122e61e",
    "first_seen_transaction_hash": "0xa3522f16433f86a1a1553ce687b2a40ff19976b7c06686496a8796f43f72aa39",
    "first_seen_transaction_index": 38,
    "first_seen_log_index": 28,
    "address": "0xf3a3b0bdacda18c6fba26267302af8431eebe205",
    "name": "MetachainCapital",
    "symbol": "MCC",
    "decimals": 18
  }
]

Query Parameters

v1/api/erc20

  • 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.
  • 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.