58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/xpring/client.rb', line 58
def send_xrp(amount:, to:, from:)
classic_from_address, classic_to_address, account_data =
validate_and_prepare_sending_xrp(to.to_s, from)
transaction_hash = {
Account: classic_from_address,
Fee: minimum_fee.to_s, LastLedgerSequence: next_sequence_for_transaction,
Sequence: account_data.account_data.sequence.value,
SigningPubKey: from.public_key,
Amount: amount.to_s, Destination: classic_to_address,
TransactionType: "Payment",
}
submit_transaction(from_wallet: from, transaction_hash: transaction_hash)
end
|