queryTransactionBlocks

open suspend override fun queryTransactionBlocks(filter: TransactionBlockFilter, options: TransactionBlockResponseOptions): Result<QueryTransactionBlocksQuery.Data?, SuiError>

Fetches a paginated list of transaction blocks matching a specified filter.

Return

A Result which is either:

  • Ok: Containing a nullable QueryTransactionBlocksQuery.Data object with a list of transaction blocks and a pagination cursor.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

filter

A TransactionBlockFilter to narrow down the search criteria (e.g., by sender, recipient, or object ID).

options

The TransactionBlockResponseOptions specifying which details of the matching transactions to include in the response.