Skip to content

Simple JavaScript and Python scripts to interact with the XRP Ledger (XRPL), enabling wallet generation, trustline approval, transactions, AMM interactions... πŸ”§

Notifications You must be signed in to change notification settings

RippleDevRel/xrpl-js-python-simple-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

XRPL JS - Simple JS scripts

This repository contains JavaScript scripts to interact with the XRP Ledger (XRPL), enabling wallet generation, trustline approval, and transactions.

πŸ“ Project Structure

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.

πŸ”§ Installation & Setup

Clone this repo and run npm i.

πŸ“ Usage

  1. Run the following command to generate a new wallet:

node src/generate.js

  1. Generate a wallet and approve Trustline for RLUSD:

node src/rlusd.js

  1. 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

Links

About

Simple JavaScript and Python scripts to interact with the XRP Ledger (XRPL), enabling wallet generation, trustline approval, transactions, AMM interactions... πŸ”§

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •