sendToken method
value is num of icx, ex: 1 to send token to a address through SCORE
final response = await FlutterIconNetwork.instance.sendToken(
yourPrivateKey: privateKey,
toAddress: receiverAddress,
value: numOfToken,
scoreAddress: scoreAddress
);
Implementation
Future<SendIcxResponse> sendToken(
{String yourPrivateKey, String toAddress, String scoreAddress, String value}) async {
final String response = await _channel.invokeMethod('sendToken', {
"from": yourPrivateKey,
"to": toAddress,
"score_address": scoreAddress,
"value": value,
"host": host,
"network_id": _networkId
});
print("FlutterIconNetwork sendToken $response");
return sendIcxResponseFromJson(response);
}