A command-line tool for doing XRP stuff
This is a wrapper around ripple-lib with a focus on adding functions that are generally pretty complex.
The goal is to add commands over time as needed and have a consistent user experience so it's easy to install and use this tool without always copying and pasting XRP secrets etc.
npm install -g xrp-commander
xrp <command> <subcommand>
Some config is read from ENV variables if available:
Var | Description | Default |
---|---|---|
XRP_ADDRESS | The XRP address to use when submitting transactions | None |
XRP_SECRET | The XRP secret to use when submitting transactions | None |
XRP_SERVER | The URL of the rippled server to connect to |
wss://s1.ripple.com:443 |
Commands that require an XRP secret will look for this in ENV vars first then prompt for it if it's not found. The XRP address will be derived from the secret if not provided.
Inspired by git
and npm
commands are grouped by feature and then function (e.g. escrow create
). Executing a command with no parameters will output details on what is required.
xrp escrow <create|release>
xrp tx <find>
This lib has been intentionally designed for easy contribution. To add a command simply submit a PR that adds a new file in the ./src/commands/
folder.
If you want to to discuss the proposed new feature beforehand log an issue.
-
[ ] Add some tests
-
[ ] Document commands better
-
[ ] Improve interactive input collection and use of named params
-
[ ] Auto-generate docs from command definitions
-
[ ] Setup CI
-
Commands
- [ ] Escrow (Cancel)
- [ ] Payments
- [ ] Payment Channels (Create/Monitor/Cleanup etc)