Get logs by contract address and log topic
GET/logs/contracts/:contractAddress/topics/:topic
For usage instructions, see Get all logs of a contract
Request
Path Parameters
contractAddress stringrequired
ContractAddress address. Example: 0x32950db2a7164ae833121501c797d79e7b79d74c
topic stringrequired
Log topic. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Query Parameters
limit integer
Paging limit
order string
Paging order, valid values: "asc", "desc". Default: "desc"
cursor string
Paging cursor
Responses
- 200
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
result
object
items
object[]
address string
topics string[]
data string
blockNumber integer
transactionHash string
transactionIndex integer
blockHash string
logIndex integer
removed boolean
paging
object
nextCursor string
{
"result": {
"items": [
{
"address": "string",
"topics": [
"string"
],
"data": "string",
"blockNumber": 0,
"transactionHash": "string",
"transactionIndex": 0,
"blockHash": "string",
"logIndex": 0,
"removed": true
}
],
"paging": {
"nextCursor": "string"
}
}
}
internal error
- application/json
- Schema
- Example (from schema)
Schema
errorCode integer
message string
{
"errorCode": 0,
"message": "string"
}
Loading...
Was this helpful?
Happy React is loading...