getTransactionBlock

Retrieves the transaction block corresponding to the given digest and with the specified options.

Return

a TransactionBlockResponse object containing the transaction block data.

Parameters

digest

the TransactionDigest object representing the digest of the transaction block to retrieve.

options

an optional TransactionBlockResponseOptions object specifying additional options for the response. Defaults to null.

Throws

if the transaction block is not found.

if there is an error retrieving the transaction block.