mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
20 lines
463 B
JavaScript
20 lines
463 B
JavaScript
if (process.argv.length < 5)
|
|
{
|
|
console.log("Usage: node pay <source family seed> <amount xrp> <destination account>")
|
|
process.exit(1)
|
|
}
|
|
const secret = process.argv[2];
|
|
const amount = BigInt(process.argv[3]) * 1000000n
|
|
const dest = process.argv[4];
|
|
const server = 'ws://localhost:6005'
|
|
require('../../utils-tests.js').TestRig(server).then(t=>
|
|
{
|
|
t.pay(secret, amount, dest).then(x=>
|
|
{
|
|
console.log(x);
|
|
process.exit(0);
|
|
});
|
|
});
|
|
|
|
|