Get Event Logs by Address and/or Topic(s)
GET/?module=logs&action=getLogs
Get Event Logs by Address and/or Topic(s)
Request
Details
Query Parameters
module stringrequired
Possible values: [logs
]
action stringrequired
Possible values: [getLogs
]
fromBlock integerrequired
toBlock integerrequired
address stringrequired
topic0 stringrequired
topic1 string
topic2 string
topic3 string
topic0_1_opr string
Possible values: [and
, or
]
topic0_2_opr string
Possible values: [and
, or
]
topic0_3_opr string
Possible values: [and
, or
]
topic1_2_opr string
Possible values: [and
, or
]
topic1_3_opr string
Possible values: [and
, or
]
topic2_3_opr string
Possible values: [and
, or
]
apiKey stringrequired
Example: pk_1234567890
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Details
Schema
Array [
]
message string
Details
result
object[]
address string
blockNumber string
data string
gasPrice string
gasUsed string
logIndex string
timeStamp string
topics string[]
transactionHash string
transactionIndex string
status string
{
"message": "string",
"result": [
{
"address": "string",
"blockNumber": "string",
"data": "string",
"gasPrice": "string",
"gasUsed": "string",
"logIndex": "string",
"timeStamp": "string",
"topics": [
"string"
],
"transactionHash": "string",
"transactionIndex": "string"
}
],
"status": "string"
}
Loading...