Search token transfers
POST/ronin/tokens/transfers/search
Search token transfers.
To use this endpoint, you need to request access to the Skynet Tx Query service through Developer Console > your app > App Permissions. For more information, see Request access to services.
Request
- application/json
Body
required
Request body
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.
Possible values: <= 20
Optional
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
.
time object
Possible values: <= 10
Optional
Possible values: [ERC20
, ERC721
, ERC1155
], <= 3
Optional
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
items object[]
paging object
{
"items": [
{
"blockHash": "string",
"blockNumber": 0,
"blockTime": 0,
"contractAddress": "string",
"decimals": 0,
"from": "string",
"logIndex": 0,
"to": "string",
"tokenId": "string",
"tokenName": "string",
"tokenStandard": "string",
"tokenSymbol": "string",
"transactionHash": "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"
}