Logs
Raw log data.
Filter on topic0
first hash the Event
signature.
cast keccak "Transfer(address,address,uint256)"
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/logs?chains=ETH&from_block=17000000&to_block=17000010&topic0__in=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq -s
Filter on address
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/logs?chains=ETH&from_block=17000000&to_block=17000010&address=0xdac17f958d2ee523a2206206994597c13d831ec7&topic0__in=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
...
{
"chain": 1,
"block_number": "0x103664a",
"block_hash": "0x5bad63a542b4deebf2d8ba93bf83b98a96ac4693640dfc3c2ccec38c3adc2bf2",
"transaction_index": 253,
"transaction_hash": "0xae76e4d852d8a9d9ebba99787c1ba5859b68bb90a2712cb3e5ce7505a1f8898a",
"log_index": "0x15a",
"address": "0x7b95ec873268a6bfc6427e7a28e396db9d0ebc65",
"topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"topic1": "0x0000000000000000000000000000000000000000000000000000000000000000",
"topic2": "0x000000000000000000000000e340b00b6b622c136ffa5cff130ec8edcddcb39d",
"topic3": null,
"data": "0x000000000000000000000000000000000000000000000009215f570e12dcdd93",
"removed": false
}
]
Query Parameters
v1/api/logs
chains
: This parameter is used to filter the logs by specific blockchain networks.from_block
: This parameter is used to filter the logs by a starting block number.to_block
: This parameter is used to filter the logs by an ending block number.address__in
: This parameter is used to filter the logs by a list of contract addresses.topic0__in
: This parameter is used to filter the logs by a list oftopic0
valuestopic1__in
: This parameter is used to filter the logs by a list oftopic1
valuestopic2__in
: This parameter is used to filter the logs by a list oftopic2
valuestopic3__in
: This parameter is used to filter the logs by a list oftopic3
values