Logs
Get Event Logs by Address
Returns the event logs from an address, with optional filtering by block range.
https://api.scrollscan.com/api
?module=logs
&action=getLogs
&address=0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780
&fromBlock=633933
&toBlock=latest
&page=1
&offset=10
&apikey=YourApiKeyToken
Query Parameters
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"address": "0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000009e0921645512b2da495d19154cb677853ba21fa2"
],
"data": "0x0000000000000000000000000000000000000000000000000000000039e0365d",
"blockNumber": "0x9ac4d",
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"timeStamp": "0x654af19f",
"gasPrice": "0x18523240",
"gasUsed": "0x6a8f6",
"logIndex": "0x8",
"transactionHash": "0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba",
"transactionIndex": "0x8"
},
{
"address": "0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780"
],
"data": "0x000000000000000000000000000000000000000000000000000000012fd91d6a",
"blockNumber": "0x9ac4d",
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"timeStamp": "0x654af19f",
"gasPrice": "0x18523240",
"gasUsed": "0x6a8f6",
"logIndex": "0x9",
"transactionHash": "0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba",
"transactionIndex": "0x8"
}
]
}
Get Event Logs by Topics
Returns the events log in a block range, filtered by topics.
https://api.scrollscan.com/api
?module=logs
&action=getLogs
&fromBlock=633933
&toBlock=latest
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&topic0_1_opr=and
&topic1=0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780
&page=1
&offset=10
&apikey=YourApiKeyToken
Usage:
For a single topic, specify the topic number such as
topic0
,topic1
,topic2
,topic3
For multiple topics, specify the topic numbers and topic operator either
and
oror
such as below topic0_1_opr (and|or between topic0 & topic1), topic1_2_opr (and|or between topic1 & topic2) topic2_3_opr (and|or between topic2 & topic3), topic0_2_opr (and|or between topic0 & topic2) topic0_3_opr (and|or between topic0 & topic3), topic1_3_opr (and|or between topic1 & topic3)
Query Parameters
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"address": "0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"0x000000000000000000000000e222fbe074a436145b255442d919e4e3a6c6a480"
],
"data": "0x00000000000000000000000000000000000000000000000000000000002f97d3",
"blockNumber": "0x9ac4d",
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"timeStamp": "0x654af19f",
"gasPrice": "0x18523240",
"gasUsed": "0x6a8f6",
"logIndex": "0xa",
"transactionHash": "0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba",
"transactionIndex": "0x8"
},
{
"address": "0x5300000000000000000000000000000000000004",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"0x000000000000000000000000e222fbe074a436145b255442d919e4e3a6c6a480"
],
"data": "0x00000000000000000000000000000000000000000000000001df8b464c789fc6",
"blockNumber": "0x9ac63",
"blockHash": "0x6fc821fabc19376ddbfc89efcb044852ceb6b30ec9f42c59fcdb0bc599b442cd",
"timeStamp": "0x654af1e1",
"gasPrice": "0x19898190",
"gasUsed": "0x33bb8",
"logIndex": "0x3",
"transactionHash": "0x9f4ba37aad5e610c78096ad9a99b1e8f5ce6a2ceac2de55d9e21c1dc24e91d8f",
"transactionIndex": "0x3"
}
]
}
Get Event Logs by Address filtered by Topics
Returns the event logs from an address, filtered by topics and block range.
https://api.scrollscan.com/api
?module=logs
&action=getLogs
&fromBlock=633933
&toBlock=latest
&address=0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&topic0_1_opr=and
&topic1=0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780
&page=1
&offset=1000
&apikey=YourApiKeyToken
Query Parameters
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"address": "0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"0x000000000000000000000000e222fbe074a436145b255442d919e4e3a6c6a480"
],
"data": "0x00000000000000000000000000000000000000000000000000000000002f97d3",
"blockNumber": "0x9ac4d",
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"timeStamp": "0x654af19f",
"gasPrice": "0x18523240",
"gasUsed": "0x6a8f6",
"logIndex": "0xa",
"transactionHash": "0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba",
"transactionIndex": "0x8"
},
{
"address": "0x4b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004b00f6dcaa21faf67e1e37ccbfdc23e79849f780",
"0x000000000000000000000000e222fbe074a436145b255442d919e4e3a6c6a480"
],
"data": "0x0000000000000000000000000000000000000000000000000000001c722a6a9b",
"blockNumber": "0x9aca1",
"blockHash": "0x366ce67b5f21b521a6a212e3998705283eed50d5af44da9073271cd6bb734593",
"timeStamp": "0x654af29b",
"gasPrice": "0x18148d00",
"gasUsed": "0x3af40",
"logIndex": "0x5",
"transactionHash": "0xe39bf8a42a1ac1562886930486bda7e76e8ff81464d6a56c6c9625ff1d099bd7",
"transactionIndex": "0x3"
}
]
}
Last updated