SRC20 Metadata

Fetch SRC20 metadata for assets first minted in the last 10000 blocks.

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

Response

[ 
  ...
  {
    "chain": 9889,
    "first_seen_block_number": 3930255,
    "first_seen_block_hash": "0xfd034e209385c4bf9bd96af47ccb20d573d58f591cbcf87c1c5a7c5273100411",
    "first_seen_transaction_hash": "0x70f4d62fae99f82235eee2960adc382171764d021e918a7eba5bb8460b810836",
    "first_seen_transaction_index": 0,
    "first_seen_receipt_index": 2,
    "contract_id": "0x62fac2f51b4a64d9f35c311ab5d846b801e19af4bc513ffc5d795451f07d2eb2",
    "asset_id": "0x96b7453266f4f1d8e519e146b2ace2e9cadbaae15741f312e0c9b2c3db51a91f",
    "name": "Constellation",
    "symbol": "CON",
    "decimals": 9
  }
]

Query Parameters

app.pangea.foundation/v1/api/src20?chains=FUEL

  • 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.
  • contract_id__in: This parameter is used to filter the data by a list of contract ids.
  • asset_id__in: This parameter is used to filter the data by a list of asset ids.
  • 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.