> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# suix_queryTransactionBlocks

> Return list of transactions for a specified query criteria.

### Parameters

<ParamField query="chainId" type="string" default="sui" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="suix_queryTransactionBlocks" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[{"filter":{"InputObject":"0x93633829fcba6d6e0ccb13d3dbfe7614b81ea76b255e5d435032cd8595f37eb8"},"options":null},"HxidAfFfyr4kXSiWeVq1J6Tk526YUVDoSUY5PSnS4tEJ",100,false]} placeholder="[{&#x22;filter&#x22;:{&#x22;InputObject&#x22;:&#x22;0x93633829fcba6d6e0ccb13d3dbfe7614b81ea76b255e5d435032cd8595f37eb8&#x22;},&#x22;options&#x22;:null},&#x22;HxidAfFfyr4kXSiWeVq1J6Tk526YUVDoSUY5PSnS4tEJ&#x22;,100,false]" required>
  Parameters for suix\_queryTransactionBlocks: \[query, cursor, limit, descending\_order]. The query object specifies the criteria, while cursor, limit, and descending\_order are optional pagination and ordering parameters.

  Positional parameters for <code>suix\_queryTransactionBlocks</code>:

  <ul>
    <li><code>params\[0]</code>: Transaction query criteria (TransactionBlockResponseQuery).</li>
    <li><code>params\[1]</code>: Optional paging cursor (TransactionDigest). If provided, the query will start from the next item after the cursor.</li>
    <li><code>params\[2]</code>: Maximum number of items returned per page. Defaults to QUERY\_MAX\_RESULT\_LIMIT if not specified.</li>
    <li><code>params\[3]</code>: Determines the ordering of results. Default is false (ascending order, oldest record first).</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Response object for suix\_queryTransactionBlocks. Contains a page of TransactionBlockResponse objects and pagination info.

  <Expandable title="properties">
    <ResponseField name="data" type="array">
      Array of TransactionBlockResponse objects.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          A TransactionBlockResponse object representing one transaction block. Extend this as needed for details.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="hasNextPage" type="boolean">
      Indicates whether there are additional pages available.
    </ResponseField>

    <ResponseField name="nextCursor" type="oneOf">
      Cursor for fetching the next page of results. If null, the current page is the last one.

      <Expandable title="variants">
        <ResponseField name="variant1" type="string" />

        <ResponseField name="variant2" type="string" />
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "suix_queryTransactionBlocks",
      "params": [
        {
          "filter": {
            "InputObject": "0x93633829fcba6d6e0ccb13d3dbfe7614b81ea76b255e5d435032cd8595f37eb8"
          },
          "options": null
        },
        "HxidAfFfyr4kXSiWeVq1J6Tk526YUVDoSUY5PSnS4tEJ",
        100,
        false
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "data": [
        {
          "digest": "GUPcK4cmRmgsTFr52ab9f6fnzNVg3Lz6hF2aXFcsRzaD"
        },
        {
          "digest": "B2iV1SVbBjgTKfbJKPQrvTT6F3kNdekFuBwY9tQcAxV2"
        },
        {
          "digest": "8QrPa4x9iNG5r2zQfmeH8pJoVjjtq9AGzp8rp2fxi8Sk"
        },
        {
          "digest": "3nek86HEjXZ7K3EtrAcBG4wMrCS21gqr8BqwwC6M6P7F"
        }
      ],
      "nextCursor": "3nek86HEjXZ7K3EtrAcBG4wMrCS21gqr8BqwwC6M6P7F",
      "hasNextPage": false
    }
  }
  ```
</ResponseExample>
