Search transactions
POST/ronin/txs/search
Search transactions.
To use this endpoint, you need to request access to the Skynet Tx Query service in the Developer Console, under your app > App Permission. For more information, see Request access to services.
Request
- */*
Body
required
Request body
Array [
]
address
object
Optional, searching for from
equal to ...
Optional, searching for from
or to
equal to ...
Optional, searching for to
equal to ...
block
object
The default search is by blockHash
. If blockHash
doesn't appear, then search for blockRange
. Max allowed blockRange
is 200
.
Optional, searching for the exact block.
Optional, searching for blocks from from
to to
. If from
equals to
, then search exactly by block number.
paging
object
Only offset
or cursor
need to be present.
Possible values: <= 200
Possible values: <= 10000
Possible values: [cursor
, offset
]
If pagingStyle
is not cursor
, then it's offset
.
sort
object[]
Possible values: <= 1
Optional, valid sort fieldNames: timestamp
Possible values: [transfer_ron
], <= 1
Optional, tx_type
has only one accepted value: transfer_ron
.
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
items
object[]
logs
object[]
paging
object
{
"items": [
{
"blockHash": "string",
"blockNumber": 0,
"blockStatus": "string",
"blockTime": 0,
"chainId": "string",
"contractAddress": "string",
"cumulativeGasUsed": 0,
"effectiveGasPrice": "string",
"expiredTime": 0,
"from": "string",
"gas": 0,
"gasPrice": "string",
"gasUsed": 0,
"input": "string",
"logs": [
{
"address": [
0
],
"blockHash": [
0
],
"blockNumber": 0,
"blockTime": "string",
"data": "string",
"logIndex": 0,
"logParam1": [
0
],
"logParam2": [
0
],
"logParam3": [
0
],
"logTopic": [
0
],
"publishedTime": "string",
"removed": true,
"transactionHash": [
0
],
"transactionIndex": 0
}
],
"logsBloom": "string",
"maxFeePerGas": "string",
"maxPriorityFeePerGas": "string",
"nonce": 0,
"payer": "string",
"payerR": "string",
"payerS": "string",
"payerV": "string",
"r": "string",
"s": "string",
"status": 0,
"to": "string",
"transactionHash": "string",
"transactionIndex": 0,
"type": 0,
"v": "string",
"value": "string"
}
],
"paging": {
"nextCursor": "string",
"total": 0
}
}
Invalid parameter
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 0,
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 0,
"message": "string"
}