GrpcBuilderAdapter class

Adapts GrpcCoreClient to the TransactionBuilderClient interface so the Transaction builder can resolve objects, Move function signatures and gas (via server-side resolveGasData) over gRPC-web.

Implemented types

Constructors

GrpcBuilderAdapter(GrpcCoreClient core)

Properties

core → GrpcCoreClient
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dryRunTransaction<T>(T tx, {String? signerAddress}) → Future<DryRunTransactionBlockResponse>
override
getBalanceBreakdown(String owner, String coinType) → Future<CoinBalanceBreakdown>
The owner's coinType balance split into coin-object vs address-balance sources — needed to resolve CoinWithBalance intents that may draw from the address balance. Transports without address-balance support (e.g. JSON-RPC) throw; the resolver only reaches this on the gRPC path.
override
getCoins(String owner, {String? coinType, String? cursor, int? limit}) → Future<PaginatedCoins>
override
getNormalizedMoveFunction(String package, String moduleName, String functionName) → Future<SuiMoveNormalizedFunction>
override
getProtocolConfig([String? version]) → Future
override
getReferenceGasPrice() → Future<BigInt>
override
multiGetObjects(List<String> objectIds, {SuiObjectDataOptions? options}) → Future<List<SuiObjectResponse>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveGasData(TransactionBlockDataBuilder data) → Future<ResolvedGasData?>
One-shot server-side gas resolution for a fully input-resolved transaction: the server selects the gas coin and computes the budget (gRPC simulate with doGasSelection). Returns null when the transport does not support it (e.g. JSON-RPC); the builder then falls back to local coin selection + a budget dry-run.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited