ERC20 Transfers

Fetch ERC20 transfers for the last 24 hours.

curl -s --location --request GET \
    "https://app.pangea.foundation/v1/api/erc20/transfers?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": 18833878,
    "block_hash": "0x815afe6a4457464c3b0aede32cde214138843064b55dcadbdc82f5f9448721c3",
    "transaction_hash": "0xcbefe1346c9164b1310fe1d1770db88e5f04b9190caed22f4c420d3b04a4b482",
    "transaction_index": 53,
    "log_index": 63,
    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "name": "Wrapped Ether",
    "symbol": "WETH",
    "decimals": 18,
    "from": "0x7d88b48f250830fc5a5f336cac03bae03091ebb5",
    "to": "0xf3de3c0d654fda23dad170f0f320a92172509127",
    "value": 0.416129078532441,
    "timestamp": 1703157347
  }
]

Filtering by mint/burn address

Fetch ERC20 token transfers for the last 24 hours where from address is 0x0000000000000000000000000000000000000000. Useful for tracking mint/burn events.

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

Values for a zero address includes falsey values:

  • 0x0
  • 0x0000000000000000000000000000000000000000

Response

[ 
  ...
  {
    "chain": 1,
    "block_number": 18834016,
    "block_hash": "0xeaf956087e4073b2fbfd12a88f64581bff39777830c41a290296b943e4ee172f",
    "transaction_hash": "0xc9aeba2f26a9e5a54ba0c4b1b46875383c8634ad66cab1c1a59fe9daf86091f9",
    "transaction_index": 154,
    "log_index": 318,
    "address": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
    "name": "Liquid staked Ether 2.0",
    "symbol": "stETH",
    "decimals": 18,
    "from": "0x0000000000000000000000000000000000000000",
    "to": "0x072b553efc22ae7dc9a1e4370dabd65b96c6f08e",
    "value": 0.1,
    "timestamp": 1703159003
  }
]

Query Parameters

v1/api/erc20/transfers

  • 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 token addresses.
  • to__in: This parameter is used to filter the data by a list of to addresses.
  • from__in: This parameter is used to filter the data by a list of from addresses.
  • value__gte: This parameter is used to filter the data by a minimum value for the amount transfered.
  • value__lte: This parameter is used to filter the data by a maximum value for the amount transfered.