GrpcTransactionExecutor extension

Automates gas preparation for the gRPC path so a Transaction can be built, signed and executed without a legacy JSON-RPC client.

Fills, when unset:

  • gas price -> getReferenceGasPrice
  • gas payment -> a Coin<SUI> from listOwnedObjects
  • gas budget -> estimated from a simulateTransaction dry run

Object resolution for moveCall arguments (the builder's client-backed resolveObjectReferences) is out of scope here; provide fully-resolved object references for those cases.

on

Methods

prepareTransaction(Transaction tx, {required String sender, BigInt? gasBudget}) Future<Uint8List>

Available on GrpcCoreClient, provided by the GrpcTransactionExecutor extension

Prepare tx (sender, gas price/payment/budget) and return the built TransactionData BCS bytes, ready to sign.
signAndExecuteTransaction(SuiAccount signer, Transaction tx, {BigInt? gasBudget, List<String>? readMask}) Future<ExecutedTransaction>

Available on GrpcCoreClient, provided by the GrpcTransactionExecutor extension

Prepare, sign and execute tx in one call.