createTransaction method
Implementation
Future<JSON> createTransaction({
required String ownerAddress,
required String toAddress,
required Amount amount,
bool visible = true,
}) {
return postCall<JSON>(
"$baseURL/wallet/createtransaction",
data: {
"owner_address": ownerAddress,
"to_address": toAddress,
"amount": amount.value.toInt(),
"visible": visible,
},
);
}