FlutterIconNetwork class

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

Properties

createWallet Future<Wallet>
create a new wallet return the Wallet object that contain the privateKey and address [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
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.
read-only, inherited

Methods

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 [...]
getIcxBalance({String privateKey}) Future<Balance>
return current icx balance [...]
getTokenBalance({String privateKey, String scoreAddress}) Future<Balance>
to check the token balance in SCORE [...]
init({String host, bool isTestNet}) → void
run once in your main.dart file [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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. [...]
inherited

Operators

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

Static Properties

instance FlutterIconNetwork
singleton
read-only