Wallet class

Annotations
  • @sealed

Constructors

Wallet.new({required String url, required String privateKey, dynamic hint})
factory
Wallet.dcoDecode(List wire)
Wallet.sseDecode(int ptr, int externalSizeOnNative)

Properties

hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Whether the underlying Arc is disposed.
no setterinherited
move bool?
no getterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

approveErc20({required String contract, required String amount, required EthTxOption ethParams, dynamic hint}) Future<String>
depositErc20({required int subAccountId, required String depositTo, required String tokenAddr, required String amount, required bool mapping, required EthTxOption ethParams, required bool isGateway, dynamic hint}) Future<String>
depositEth({required int subAccountId, required String depositTo, required EthTxOption ethParams, required bool isGateway, dynamic hint}) Future<String>
dispose() → void
Dispose the underlying Arc.
inherited
fullExit({required int accountId, required int subAccountId, required int tokenId, required bool mapping, required EthTxOption ethParams, dynamic hint}) Future<String>
getBalance({dynamic hint}) Future<String>
getDepositFee({required EthTxOption ethParams, dynamic hint}) Future<String>
getNonce({required String blockNumber, dynamic hint}) Future<double>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAuthPubkeyHash({required double nonce, required String newPubkeyHash, required EthTxOption ethParams, dynamic hint}) Future<String>
toString() String
A string representation of this object.
inherited
waitForTransaction({required String txHash, int? timeout, dynamic hint}) Future<int>

Operators

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