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>fromlistOwnedObjects - gas budget -> estimated from a
simulateTransactiondry 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.
Methods
-
prepareTransaction(
Transaction tx, {required String sender, BigInt? gasBudget}) → Future< Uint8List> -
Available on GrpcCoreClient, provided by the GrpcTransactionExecutor extension
Preparetx(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 executetxin one call.