builder/transaction library

Functions

chunk<T>(List<T> arr, int size) → List<List<T>>
expectClient(BuildOptions options) → SuiCoreClient
simulationResolvePlugin(SuiCoreClient client, {ResolveSimulate? simulate}) → TransactionPlugin
The node fills in object versions, gas price, budget and payment, selecting gas when budget or payment is unset. simulate defaults to simulateTransaction.

Typedefs

IntentResolver = Future<void> Function(TransactionBlockDataBuilder transactionData, BuildOptions options, Future<void> next())
ResolvedSimulation = ({Uint8List? bcs, String? epoch, ExecutionStatus status})
ResolveSimulate = Future<ResolvedSimulation> Function(Transaction request, {required bool checksEnabled, required bool doGasSelection})
TransactionPlugin = IntentResolver
An async resolver for a named $Intent command. It may inspect and mutate transactionData (e.g. via replaceCommand) and must call next to run the rest of the resolver chain.