XRP-REPL is run on the command line and provides utility and convenience functions for the XRP Ledger.
It is similar to a command line interface.
Clone this repository (or download and extract a copy).
Install dependencies using Yarn.
yarn
Start the REPL.
yarn start --base-url=http://localhost:3000/v1 --authorization='Bearer <apiKey>'
Replace http://localhost:3000/v1
with your desired base url for HTTP requests. --authorization
is optional; use the apiKey
set in your xrp-api
server configuration.
To start the server in development mode:
yarn dev --base-url=http://localhost:3000/v1 --authorization='Bearer <apiKey>'
This uses nodemon
to automatically rebuild and restart the REPL when you save changes to the .ts
source files. See nodemon.json
for this project's nodemon configuration.
Replace values in <brackets>
.
GET /accounts/<address>/info
POST /payments {payment: {source_address: '<address>', source_tag: <tag>, source_amount: {value: '<value>', currency: '<currency>'}, destination_address: '<address>', destination_tag: <tag>, destination_amount: {value: '<value>', currency: '<currency>'}}, submit: <boolean>}
<tag>
s are optional. If provided, each <tag>
must be a 32-bit unsigned integer.
POST /payments {payment: {source_address: 'rLRnD5g6eb3TWrvfHoZ8y2mRznuu7GJzeN', source_tag: 123, source_amount: {value: '1000000', currency: 'drops'}, destination_address: 'rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe', destination_tag: 456, destination_amount: {value: '1000000', currency: 'drops'}}, submit: true}