Skip to content

Instantly share code, notes, and snippets.

@shortthefomo
Created November 3, 2023 14:42
Show Gist options
  • Save shortthefomo/03c69e63c04d07fd7e0243bac95f6285 to your computer and use it in GitHub Desktop.
Save shortthefomo/03c69e63c04d07fd7e0243bac95f6285 to your computer and use it in GitHub Desktop.
payment
const { XrplClient } = require('xrpl-client')
const payment = {
"TransactionType" : "Payment",
"Account" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"Destination" : "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
"Amount" : {
"currency" : "USD",
"value" : "1",
"issuer" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn"
},
"Fee": "12",
"Flags": 2147483648,
"Sequence": 2,
}
const client = new XrplClient('<chooooose your network here>')
await client.send(payment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment