This repository contains JavaScript scripts to interact with the XRP Ledger (XRPL), enabling wallet generation, trustline approval, and transactions.
The scripts are located inside the src folder:
-
generate.js
β Generates a new XRPL wallet (address & seed). -
rlusd.js
β Generates a new XRPL wallet (address & seed) and approves a trustline for the RLUSD token on XRPL. -
transaction.js
β Sends an XRP transaction from one wallet to another.
Clone this repo and run npm i
.
- Run the following command to generate a new wallet:
node src/generate.js
- Generate a wallet and approve Trustline for RLUSD:
node src/rlusd.js
- Send an XRP Transaction:
Before running this script, update transaction.js with:
- Source Wallet Seed (from generate.js)
- Destination Wallet Address
node src/transaction.js