newSplitCoin method
Implementation
@override
Future<Uint8List> newSplitCoin(SuiAddress signerAddress,
SplitCoinTransaction txn) async {
final resp = await client.request(
'unsafe_splitCoin',
[
signerAddress,
txn.coinObjectId,
txn.splitAmounts.map((e) => e.toString()).toList(),
txn.gasPayment,
txn.gasBudget.toString()
]
);
return base64Decode(resp['txBytes']);
}