Exchange XRP using Text Messages
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database
docker
src
web
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
config.sample.json
index.js
package-lock.json
package.json

README.md

XRP Text

This application runs a a service where users can deposit XRP to a central wallet, withdraw XRP to their own wallet and exchange XRP by sending just a text message with a phone (so this also works at dumbphones and/or without an internet connection)

This project has some similarities with the XRP Tip Bot, except with increased limits and text messages as the only way of communicating with the platform.

Dependencies

  • Node 8+
  • Twilio is used for inbound and outbound text messages.
  • A MySQL / MariaDB database server is used to persist users and transactions.
  • A free TCP port, where a HTTP server will launch to receive Twilio webhooks.

Configure

  1. Make sure your MySQL / MariaDB database server is running and accepting connections. Setup a database, user and password and import the SQL script: database/mysql.sql
  2. Copy config.sample.json to config.json and make changes: add your Twilio keys and MySQL server credentials.
  3. Make sure your computer is publicly accessible on the http port configured in the config file.
  4. Configure Twilio to send Webhooks for incoming messages to your computer at the port configured in step 3.

Run

Launch the application:

node index.js

If you want to the application to auto-reload (for development) on change:

npm run dev