SuiClient class abstract
Sui chain support: reads and transfers against a Sui GraphQL node. Signing goes through whatever WalletSigner is installed (WaaS today), never through this domain. Implemented by SuiClientImpl; hosts can substitute this interface in tests.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
availableNetworks(
) → List< SuiNetwork> - Returns host GraphQL networks with resolved dashboard identity.
-
buildUnsignedTransaction(
SuiTxRequest request, [SuiNetwork? network]) → Future< String> - Builds unsigned BCS transaction bytes as hex. Does not sign or broadcast.
-
configureNetworks(
List< SuiNetwork> networks) → void - Sets host GraphQL endpoints. The first network is the default.
-
getBalance(
String address, [String coinType = "0x2::sui::SUI", SuiNetwork? network]) → Future< String> - Returns the balance in base units, or MIST for native SUI.
-
getReferenceGasPrice(
[SuiNetwork? network]) → Future< String> - Returns the current reference gas price.
-
getTransactionStatus(
String digest, [SuiNetwork? network]) → Future< SuiReceipt?> - Returns execution status, or null if the transaction is not indexed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendTransaction(
SuiTxRequest request, [SuiNetwork? network]) → Future< String> - Builds, signs, and broadcasts a native SUI transfer. Returns its digest.
-
signMessage(
String from, String message) → Future< String> - Signs a message with WalletSigner. Does not call a chain endpoint.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited