Fuel Logs

Fetch logs from the last 10000 blocks.

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

Response

[
  ...
  {
    "chain": 9889,
    "block_number": "0x34278a",
    "block_hash": "0xaa170424b2ab2eca232e557f71573d759376b7710a0a8cf0b91dd4b385cbacbb",
    "transaction_index": 0,
    "transaction_hash": "0xa1831ea168642cb23c1f1f49d3aa84c3cd61ef7b8b8d0206d07173d3dff63694",
    "log_index": "0x2",
    "id": "0x243ef4c2301f44eecbeaf1c39fee9379664b59a2e5b75317e8c7e7f26a25ed4d",
    "ra": 0,
    "rb": 16905867214671608000,
    "pc": 54336,
    "is": 13952,
    "ptr": 67065462,
    "len": 256,
    "digest": "0x4cdb5e82a8e02910eb10c16ca93a19b5f2bc931cd2192e277f26a1970099a5ea",
    "data": "0x0000000000000001057c63d4f5931b298d5db38deff552a840eb9eb8b5553ae59911c2390d02832c6c49291704adc561074d887603c0c5e98b162b8662b746a1c945bb1c71e40f7900000000000000010000000000002710000000000000000000000000000000000000000000000000000000000000008256b7d897284fefd10dc0b19631392debd7a6678486dfbe764030dec170f21245fb2b92c17160f9856664bde85bec51f5839d565898d489a6ef8fcb9b73575b57f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07f8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad070000000000000000"
  }
]

Get logs by contract address

Filter logs by the contract address or id field using the __in operator: id__in from the last 10 blocks.

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

Response

[
  ...
  {
    "chain": 9889,
    "block_number": "0x34278a",
    "block_hash": "0xaa170424b2ab2eca232e557f71573d759376b7710a0a8cf0b91dd4b385cbacbb",
    "transaction_index": 0,
    "transaction_hash": "0xa1831ea168642cb23c1f1f49d3aa84c3cd61ef7b8b8d0206d07173d3dff63694",
    "log_index": "0x1",
    "id": "0x773ca186f811c1655be9d6dcc84aef437cf25c2ebe8c367810529a8ee53fc92a",
    "ra": 0,
    "rb": 13279905576758129000,
    "pc": 133484,
    "is": 97608,
    "ptr": 67077494,
    "len": 80,
    "digest": "0xadea35948803887b3e7d22d2c9f2677d80fd72038ec97b40b4fb51bf85348ba6",
    "data": "0x0000000000000001243ef4c2301f44eecbeaf1c39fee9379664b59a2e5b75317e8c7e7f26a25ed4df8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad070000000000002710"
  }
]

Query Parameters

app.pangea.foundation/v1/api/logs?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.
  • id__in: This parameter is used to filter the data by a list of contract ids.
  • ra__in: This parameter is used to filter the logs by a list of ra values.
  • rb__in: This parameter is used to filter the logs by a list of rb values.
  • address__in / contractid__in / identity__in: This parameter is used to filter the data by an ending data availability block number.