WalletService class

Implemented types

Constructors

WalletService()

Properties

abiJson String
final
blTokenContract String
final
chainId int
final
coin int
final
hashCode int
The hash code for this object.
no setterinherited
myWallet ↔ HDWallet
getter/setter pair
rpcUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
walletPassword String
final

Methods

checkAvailableBLBalance({required String toAddress, required String privateKey, required double amount}) Future<bool>
override
checkAvailableBNBBalance({required String toAddress, required String privateKey, required double amount}) Future<bool>
override
checkAvailableGasFee({required String toAddress, required String privateKey, required double amount}) Future<bool>
override
createWallet() Future<void>
지갑 생성 이미 지갑이 있을경우 기존 지갑 로드
override
deleteWallet() Future<void>
override
estimateGasFee({required String from, required String toAddress, required double amount, bool isBEP20 = false}) Future<Map<String, BigInt>>
GasFee 조회
override
getAddress() String
코인타입에 맞는 주소 조회
override
getBinanceBalance(String address) Future<double>
BSC 잔고 조회
override
getBLBalance(String address) Future<double>
BEP-20기반 토큰 잔고 조회
override
getBlockTimestamp(String blockNumber) Future<DateTime>
getBNBTransactions(String address) Future<List<Map<String, dynamic>>>
override
getBSCDerivationPath() String
storedKey에 account 추가시 사용되는 메소드
getMnemonic() String
니모닉 조회
override
getPrivateKey() String
개인키 조회
override
getTokenDecimals() Future<int>
override
getTokenSymbol() Future<String>
override
loadWallet() Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreByMnemonic(String mnemonic) Future<bool>
override
sendBEP20Token({required String toAddress, required String privateKey, required double amount}) Future<String>
BEP-20 토큰 전송
override
sendBNB({required String toAddress, required String privateKey, required double amount}) Future<String>
BNB 전송
override
toString() String
A string representation of this object.
inherited
trustWalletInit() Future<void>
wallet 초기화
override

Operators

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