TonClient class abstract
TON support for balances, Wallet V5R1 native transfers, and raw transaction requests. Implemented by TonClientImpl; 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< TonNetwork> - Returns configured TON networks.
-
configureNetworks(
List< TonNetwork> networks) → void - Sets host TON JSON-RPC endpoints. The first network is the default.
-
getBalance(
String address, [TonNetwork? network]) → Future< String> - Returns the native balance in nanoton.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendJetton(
String from, TonJettonTransfer transfer, [int timeoutSeconds = 60, TonNetwork? network]) → Future< TonSendTransactionResponse> - Builds, signs, and submits a Jetton transfer.
-
sendTon(
String from, TonNativeTransfer transfer, [int timeoutSeconds = 60, TonNetwork? network]) → Future< TonSendTransactionResponse> - Builds, signs, and submits a native TON transfer.
-
sendTransaction(
TonTransactionRequest request, [TonNetwork? network]) → Future< TonSendTransactionResponse> - Builds, signs, and submits a TON transaction.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited