Transactions

Fetch raw transaction data for blocks 17000000 to 17000010.

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

Response

[
  ...
  {
    "chain": "ETH",
    "block_number": 17000009,
    "block_hash": "0xe284afd9d7793371fefa661de0cfe9e7eafd47c9634834d384dac97dfefc3cbf",
    "transaction_index": 92,
    "hash": "0xe63e694366cd5e029d49f4652965e4c90fa2206fe3ced48b484b0a6ceb88d20e",
    "nonce": "0x0000000000000000000000000000000000000000000000000000000000000997",
    "from": "0xce0babc8398144aa98d9210d595e3a9714910748",
    "to": "0x388c818ca8b9251b393131c08a736a67ccb19297",
    "value": "0x000000000000000000000000000000000000000000000000002c6022d97fd71f",
    "gas_price": "0x0000000000000000000000000000000000000000000000000000000596655fb8",
    "gas": "0x000000000000000000000000000000000000000000000000000000000000565f",
    "input": "0x0000",
    "v": 1,
    "r": "0x7a1bc22201e3ca6466efb735345400915abcf98b49fd6c513f6b52ff7505695f",
    "s": "0x44ab9dbbbceed9c6d2692736b298acd3298edb4176a05f8f91f7361902f9b62b",
    "raw": null,
    "type": 2,
    "max_fee_per_gas": "0x0000000000000000000000000000000000000000000000000000000596655fb8",
    "max_priority_fee_per_gas": "0x0000000000000000000000000000000000000000000000000000000000000000"
  }
]

Filter on contract deployments

curl -s --location --request GET \
    "https://app.pangea.foundation/v1/api/transactions?chains=ETH&from_block=17000000&to_block=17000010&to__in=%00" \
    --header "Accept: application/jsonstream" \
    --header "Accept-Encoding: gzip" --compressed \
    --header "Authorization: Basic $PANGEA_AUTH" | jq

Query Parameters

v1/api/transactions

  • 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.
  • to__in: This parameter is used to filter the data by the to address.
  • from__in: This parameter is used to filter the data by the from address.
  • value__gte: This parameter is used to filter the value using the greater than or equal to operator.
  • value__lte: This parameter is used to filter the value using the less than or equal to operator.