Skip to main content

suix_queryTransactionBlocks

'Extended API: Return list of transactions for a specified query criteria'

'Extended API: Return list of transactions for a specified query criteria'

Parameters

  • query : <TransactionBlockResponseQuery> - the transaction query criteria.
  • cursor : <TransactionDigest> - An optional paging cursor. If provided, the query will start from the next item after the specified cursor. Default to start from the first item if not specified.
  • limit : <uint> - Maximum item returned per page, default to QUERY_MAX_RESULT_LIMIT if not specified.
  • descending_order : <boolean> - query result ordering, default to false (ascending order), oldest record first.

Returns

  • TransactionBlocksPage : <Page_for_TransactionBlockResponse_and_TransactionDigest>

Example Request and Result for suix_queryTransactionBlocks

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_queryTransactionBlocks",
"params": [
{
"filter": {
"InputObject": "0x93633829fcba6d6e0ccb13d3dbfe7614b81ea76b255e5d435032cd8595f37eb8"
},
"options": null
},
"4zx1VeackQ7SsyQuFFMo2zXYsHSzYhAeBgj6WjpeaD3v",
100,
false
]
}'

Result

{
"jsonrpc": "2.0",
"result": {
"data": [],
"nextCursor": "4zx1VeackQ7SsyQuFFMo2zXYsHSzYhAeBgj6WjpeaD3v",
"hasNextPage": false
},
"id": 1
}