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": "0x587183",
"block_hash": "0xefed7f23d014120007b98edb6eef5407f93facfeb1777374ce20de5a2a53a65f",
"transaction_index": "0x1",
"transaction_hash": "0x1135e3bcec7b13f227d3acad378d496288d17258435a0111a031bca6db2ed99c",
"log_index": "0x0",
"id": "0x12a5f8666279f841e5900500297ce3c8bcf40103dd191c56dd3ec86f92b9217b",
"ra": "0x0",
"rb": "0xaeb9b947da259c60",
"pc": "0x11854",
"is": "0x2f98",
"ptr": "0x3fff776",
"len": "0x98",
"digest": "0x9920f6389ceb102f135453b78c82878f7e366db793b27522c09efc24c1e2d96f",
"data": "0x0000000000000001368f9275e7d072794527b57d5b54688300008a400f41d926a013195e7074029c0000000000000000f5d1028d95df5f8bb63cc24b1916f8a390aeb50bf01a1498d11bd8bd08d712f20000000000000000000000000000000200001502f79b5f8c00000da811f6f6da0000000000000000f5d1028d95df5f8bb63cc24b1916f8a390aeb50bf01a1498d11bd8bd08d712f2"
}
]
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": "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
: 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 a list of addresses.