get Transaction Block
abstract suspend fun getTransactionBlock(digest: String, options: TransactionBlockResponseOptions = TransactionBlockResponseOptions()): Result<GetTransactionBlockQuery.Data?, SuiError>
Fetches the details of a specific transaction block by its digest.
Return
A Result which is either:
Ok
: Containing a nullable GetTransactionBlockQuery.Data object with the transaction's details.Err
: Containing a SuiError object with a list of GraphQLErrors.
Parameters
digest
The base58-encoded digest of the transaction block.
options
The TransactionBlockResponseOptions specifying which details of the transaction to include in the response.