Transaction

class Transaction(val config: SuiConfig) : Transaction

Transaction API implementation

This namespace contains all the functions related to transactions

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

The SuiConfig to use

Functions

Link copied to clipboard
open suspend override fun dryRunTransactionBlock(txnBytes: String, option: ExecuteTransactionBlockResponseOptions): Option.Some<DryRunTransactionBlock.Result?>

Dry run a transaction block

Link copied to clipboard
open suspend override fun executeTransactionBlock(txnBytes: String, signatures: List<String>, option: ExecuteTransactionBlockResponseOptions): Option.Some<ExecuteTransactionBlock.Result?>

Execute a transaction block

Link copied to clipboard
open suspend override fun getTotalTransactionBlocks(): Option<Long?>

Get the total transaction blocks

Link copied to clipboard

Query transaction blocks for the specified criteria

Link copied to clipboard
open suspend override fun signAndExecuteTransactionBlock(signer: Account, ptb: ProgrammableTransaction, gasBudget: ULong): Option.Some<ExecuteTransactionBlock.Result?>

Sign and execute a transaction block

Link copied to clipboard
open override fun signTransaction(message: ByteArray, signer: Account): ByteArray

Sign a transaction