CoinClient class

Constructors

CoinClient(AptosClient client)
CoinClient.fromEndpoint(String endpoint, {bool enableDebugLog = false})
factory

Properties

aptosClient AptosClient
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkBalance(String address, {String? coinType}) Future<BigInt>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(AptosAccount coinReceiver, String coinType) Future<String>
toString() String
A string representation of this object.
inherited
transfer(AptosAccount from, String to, BigInt amount, {BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp, String? coinType, bool createReceiverIfMissing = false}) Future<String>
Generate, sign, and submit a transaction to the Aptos blockchain API to transfer coins from one account to another. By default it transfers 0x1::aptos_coin::AptosCoin, but you can specify a different coin type with the coinType argument.

Operators

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