FlutterIconNetwork class Null safety

A Flutter plugin to work with native Android/Ios sdk of Icon network Native sdk: https://www.icondev.io/docs/sdk-overview


createWallet Future<Wallet>
create a new wallet return the Wallet object that contain the privateKey and address
hashCode int
The hash code for this object.
host String
read / write
isTestNet bool?
is test network or main network
read / write
runtimeType Type
A representation of the runtime type of the object.


checkScoreTokenName(String scoreAddress) Future<String?>
Check Store token name
checkScoreTokenSymbol(String scoreAddress) Future<String?>
Check Symbol token
deployScore({String? privateKey, String? initIcxSupply}) Future<TransactionResult?>
deployContract: only available in android, on ios the sdk not support yet to deploy a SCORE by choose the zip file contain the source code the sample token zip file contain in source code, pls download it to your phone
getBlockByHash(String blockHash) Future<Map<String, String>?>
Get block by transaction hash
getBlockByHeight(String blockHeight) Future<Map<String, String>?>
Get block by height
getConfirmedTransactionIdList() Future<List<String>?>
Get transaction id list
getIcxBalance({String? privateKey}) Future<Balance>
return current icx balance
getLastBlock() Future<String?>
Get last Block
getScoreAPIs(String scoreAddress) Future<List<Map<String?, String?>>?>
Get the SCORE apis
getTokenBalance({String? privateKey, String? scoreAddress}) Future<Balance>
to check the token balance in SCORE
getTotalSupply() Future<String?>
Get block's total supply
getTransactionResult(String txHash) Future<Map<String, dynamic>?>
Get transaction result
getWalletByPrivateKey(String privateKey) Future<Map<String, String>?>
Get wallet by private key
init({required String host, bool? isTestNet}) Future<void>
run once in your main.dart file
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
readFile() Future<Uint8List?>
sendIcx({String? yourPrivateKey, String? destinationAddress, String? value}) Future<SendIcxResponse>
value is decimal, ex: '1' send Icx to an address return the transaction hash
sendToken({String? yourPrivateKey, String? toAddress, String? scoreAddress, String? value}) Future<SendIcxResponse>
value is num of icx, ex: 1 to send token to a address through SCORE
toString() String
A string representation of this object.


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

Static Properties

instance FlutterIconNetwork?