Fuel Logs

Fetch logs for blocks 7004600 to 7004650.

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

Response

[
  ...
  {
    "chain": 9889,
    "block_number": "0x6ae1e8",
    "block_hash": "0x8c7138a2a4e57559d4da3f0763ccd9a11ee1178cf2704a618737443c11391592",
    "transaction_index": "0x1",
    "transaction_hash": "0x13bdbaa8ad3c3f802ff430f2241f03dd63aee50f18f8b4a5e446bbb15382289b",
    "log_index": "0x0",
    "id": "0x4a6914d9ee51445a57cfddf8690eb3f072933925d6cdfa6c1e5f953dd5b8e610",
    "ra": "0x0",
    "rb": "0x367adc51ef143121",
    "pc": "0xd434",
    "is": "0x2db0",
    "ptr": "0x3ffe05e",
    "len": "0x40",
    "digest": "0xa878eb7f0e035d62f39f1be2e75c7aff803bf9ef4e471c6d6be09330fd09ec74",
    "data": "0x00000000000000006425ca818b7b3758b66a6c376428ec14755f52e67e9bfa561ca0e824facf8a930000000000000000000000000000000340000000673dbcf7"
  }
]

Filter on contract id

The id__in filter can be used to fetch log events from specific contracts.

Fetch logs for blocks 7004600 to 7004650 for contract 0x657ab45a6eb98a4893a99fd104347179151e8b3828fd8f2a108cc09770d1ebae.

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

Response

[
  ...
  {
    "chain": 9889,
    "block_number": "0x5882ec",
    "block_hash": "0x93948d1ae83522568b115bbb69ab42196bc21bde70dce8d489b5c1e8817f5b04",
    "transaction_index": "0x0",
    "transaction_hash": "0xbe98f8815e78f10c2a87d4b63a229584cd5b8812533fd77a39363e7de9bdd609",
    "log_index": "0x0",
    "id": "0x773ca186f811c1655be9d6dcc84aef437cf25c2ebe8c367810529a8ee53fc92a",
    "ra": "0x0",
    "rb": "0xa93fb3d7088884ac",
    "pc": "0xbf10",
    "is": "0x6638",
    "ptr": "0x3ffd572",
    "len": "0x50",
    "digest": "0x8a965168237e362f5bc7bc309f0c430b77160d6f0ba29deb326f20b20a77a20f",
    "data": "0x0000000000000000a7ab795d9c35f9bdc4b77b959f5710b999ef6767bdf3e5f394eecf4d55198217f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad0700000000019bfcc0"
  }
]

Query Parameters

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

  • chains: Filters the data by specific blockchain networks.
  • from_block: Filters the data by a starting block number.
  • to_block: Filters the data by an ending block number.
  • id__in: Filters the data by a list of contract ids.
  • ra__in: Filters the data by a list of ra values.
  • rb__in: Filters the data by a list of rb values.
  • address__in / contractid__in / identity__in: Filters the data by a list of addresses.