Links
Comment on page

Logs

Get Event Logs by Address

Returns the event logs from an address, with optional filtering by block range.
https://api.arbiscan.io/api
?module=logs
&action=getLogs
&address=0xC36442b4a4522E871399CD717aBDD847Ab11FE88
&fromBlock=22523653
&toBlock=22524653
&page=1
&offset=1000
&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for logs
fromBlock
the integer block number to start searching for logs eg. 12878196
toBlock
the integer block number to stop searching for logs eg. 12879196
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"address":"0xc36442b4a4522e871399cd717abdd847ab11fe88",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000d41c313aa31039a2a7ede21e116624229b317bf8",
"0x0000000000000000000000000000000000000000000000000000000000019502"
],
"data":"0x",
"blockNumber":"0x157afdf",
"blockHash":"0x32bc9cbe558c885f6e8caddae38f17c907d30ed1adec8ae41c665473878aeb88",
"timeStamp":"0x63123754",
"gasPrice":"0x5f5e100",
"gasUsed":"0x13ef04",
"logIndex":"0x6",
"transactionHash":"0x688e0605e07e52870d8efd01d3f772833f8bc9eef9d2c32e16af9a14d6cc6e00",
"transactionIndex":"0x1"
},
{
"address":"0xc36442b4a4522e871399cd717abdd847ab11fe88",
"topics":[
"0x3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f",
"0x0000000000000000000000000000000000000000000000000000000000019502"
],
"data":"0x0000000000000000000000000000000000000000000000000000000022a8fa1e00000000000000000000000000000000000000000000000000000000001e8098000000000000000000000000000000000000000000000000000000000016a7a5",
"blockNumber":"0x157afdf",
"blockHash":"0x32bc9cbe558c885f6e8caddae38f17c907d30ed1adec8ae41c665473878aeb88",
"timeStamp":"0x63123754",
"gasPrice":"0x5f5e100",
"gasUsed":"0x13ef04",
"logIndex":"0x7",
"transactionHash":"0x688e0605e07e52870d8efd01d3f772833f8bc9eef9d2c32e16af9a14d6cc6e00",
"transactionIndex":"0x1"
}
]
}

Get Event Logs by Topics

Returns the events log in a block range, filtered by topics.
https://api.arbiscan.io/api
?module=logs
&action=getLogs
&fromBlock=22523653
&toBlock=22524653
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&topic0_1_opr=and
&topic1=0x0000000000000000000000000000000000000000000000000000000000000000
&page=1
&offset=1000
&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 or or 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)
Try this endpoint in your browser
🔗
Request
Response
Query Parameters
Parameter
Description
fromBlock
the integer block number to start searching for logs eg. 12878196
toBlock
the integer block number to stop searching for logs eg. 12879196
topic
the topic numbers to search for limited totopic0, topic1, topic2, topic3
topicOperator
the topic operator when multiple topic combinations are used limited to and or or
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"address":"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"
],
"data":"0x0000000000000000000000000000000000000000000000000011c37937e08000",
"blockNumber":"0x157af05",
"blockHash":"0x07346970f6ee9e10ddd48421567fd406be868468635bd46bc75a29fec4f4ec3f",
"timeStamp":"0x631236f2",
"gasPrice":"0x5f5e1000",
"gasUsed":"0xdd7cd",
"logIndex":"0x1",
"transactionHash":"0xb97cebaa05bedb130af96ab54747ffdfdcc92661ad0a13408fa6a82c2ad4c2ab",
"transactionIndex":"0x1"
},
{
"address":"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000093131efee501d5721737c32576238f619548edda"
],
"data":"0x00000000000000000000000000000000000000000000000000005af3107a4000",
"blockNumber":"0x157af07",
"blockHash":"0x1eb94aca96e3eec967db011d59eb59888d07aae852ba450def0321b505a51dd8",
"timeStamp":"0x631236f3",
"gasPrice":"0x5f5e100",
"gasUsed":"0x190743",
"logIndex":"0x",
"transactionHash":"0xb812c7e968c5f14b2a2d40dbe292cb36fcfb582ea6af5a778f2cb11857328a4a",
"transactionIndex":"0x1"
}
]
}

Get Event Logs by Address filtered by Topics

Returns the event logs from an address, filtered by topics and block range.
https://api.arbiscan.io/api
?module=logs
&action=getLogs
&fromBlock=22524752
&toBlock=22525752
&address=0xda10009cbd5d07dd0cecc66161fc93d7c9000da1
&topic0=0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
&topic0_1_opr=and
&topic1=0x00000000000000000000000048ef488054b5c570cf3a2ac0a0697b0b0d34c431
&page=1
&offset=1000
&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
Request
Response
Query Parameters
Parameter
Description
fromBlock
the integer block number to start searching for logs eg. 12878196
toBlock
the integer block number to stop searching for logs eg. 12879196
address
the string representing the address to check for logs
topic
the topic numbers to search for limited totopic0, topic1, topic2, topic3
topicOperator
the topic operator when multiple topic combinations are used limited to and or or
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"address":"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
"topics":[
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000048ef488054b5c570cf3a2ac0a0697b0b0d34c431",
"0x000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564"
],
"data":"0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber":"0x157b738",
"blockHash":"0x526bfe7738bcc3abde4852f958f64eaf5cd6b6e3317cb528a3b7c41738c09999",
"timeStamp":"0x63123aad",
"gasPrice":"0x5f5e100",
"gasUsed":"0x2ec7c7",
"logIndex":"0x8",
"transactionHash":"0xbc17d90fbbeca0cf74701584f1f6347e729cb7f9214d33e1c094ab9b8183d1ef",
"transactionIndex":"0x1"
},
{
"address":"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
"topics":[
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000048ef488054b5c570cf3a2ac0a0697b0b0d34c431",
"0x000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564"
],
"data":"0x00000000000000000000000000000000000000000000017a85a74321250a0000",
"blockNumber":"0x157b738",
"blockHash":"0x526bfe7738bcc3abde4852f958f64eaf5cd6b6e3317cb528a3b7c41738c09999",
"timeStamp":"0x63123aad",
"gasPrice":"0x5f5e100",
"gasUsed":"0x2ec7c7",
"logIndex":"0x9",
"transactionHash":"0xbc17d90fbbeca0cf74701584f1f6347e729cb7f9214d33e1c094ab9b8183d1ef",
"transactionIndex":"0x1"
}
]
}