Transaction

class Transaction(val config: SuiConfig) : Transaction

The concrete implementation of the Transaction interface.

This class provides all the functions related to building, executing, and querying transactions.

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

The SuiConfig object specifying the RPC endpoint and connection settings.

Functions

Link copied to clipboard

Runs a special developer-focused inspection of a transaction block.

Link copied to clipboard

Simulates the execution of a transaction block without committing it to the network.

Link copied to clipboard

Submits a pre-signed transaction block to the Sui network for execution.

Link copied to clipboard

Fetches the total number of transaction blocks processed by the network.

Link copied to clipboard

Fetches the details of a specific transaction block by its digest.

Link copied to clipboard
open suspend override fun paginateTransactionBlockLists(digest: String, hasMoreEvents: Boolean, hasMoreBalanceChanges: Boolean, hasMoreObjectChanges: Boolean, afterEvents: String?, afterBalanceChanges: String?, afterObjectChanges: String?): Result<PaginateTransactionBlockListsQuery.Data?, SuiError>

Fetches paginated lists of components within a specific transaction block.

Link copied to clipboard

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

Link copied to clipboard

A convenience method that signs and executes a transaction block in a single step.

Link copied to clipboard
open suspend override fun signTransaction(message: ByteArray, signer: Account): Result<ByteArray, Exception>

Creates a cryptographic signature for a given message using a signer's private key.

Link copied to clipboard
open suspend override fun waitForTransaction(digest: String, options: TransactionBlockResponseOptions, timeout: Long, pollInterval: Long): Result<GetTransactionBlockQuery.Data?, SuiError>