splitCoins method

TransactionResult splitCoins(
  1. Map<String, dynamic> coin,
  2. List amounts
)

Implementation

TransactionResult splitCoins(Map<String, dynamic> coin, List<dynamic> amounts) {
    final result = amounts.map((x) => x is! Map ? pure.u64(BigInt.parse(x.toString())) : x).toList();
	return add(Commands.splitCoins(coin, result));
}