GithubHelp home page GithubHelp logo

allandproust / rippler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xrpscan/rippler

0.0 1.0 1.0 382 KB

Command line client for Ripple payment platform. It uses Ripple websocket API to send commands and receive responses.

License: MIT License

Ruby 100.00%

rippler's Introduction

Rippler

Command line client for Ripple payment platform. It uses Ripple websocket API to send commands and receive responses.

Installation

You need to have Ruby 1.9 (http://www.ruby-lang.org/en/downloads/) installed. Once Ruby is in place, just install Rippler gem:

$ gem install rippler

Alternatively, you can install from source at Github:

$ git clone https://github.com/arvicco/rippler.git
$ cd rippler
$ bundle install

Usage: Ripple API

Rippler supports Ripple API commands (https://ripple.com/wiki/RPC_API). All parameters after command should be given in commandline JSON format, such as:

$ rippler account_info account:rwLYfeQHfucz8wD6tFPY9Ms6ovmMBCCpMd

$ rippler account_tx account:rwLYfeQHfucz8wD6tFPY9Ms6ovmMBCCpMd ledger:319841

$ rippler account_tx account:evoorhees ledger_min:0 ledger_max:400000

$ rippler book_offers taker_pays:USD/bitstamp taker_gets:BTC/bitstamp

$ rippler subscribe streams:[ledger]

Ripple server replies are returned as JSON and printed to stdout. If you want to do some post-processing of the results, get the source from Github and modify bin/rippler script.

Usage: additional commands

Rippler also provides additional commands that print out human-readable output. You can use option -t for text (rather than structural) output.

$ rippler -t order_book buy:BTC/bitstamp sell:XRP

This one prints current order book for any currency pair.

$ rippler -t order_book buy:EUR/bitstamp sell:USD/bitstamp funded:true digits:4

Show the order book for the EUR/USD pair, using four decimal places, and only showing offers as they are funded.

$ rippler -t history account:molecular

This one prints any account history in a human-readable format.

$ rippler balances account:bitstamp

This one prints out all outstanding balances (debit/credit IOUs and XRP) for a specific account. For example, you can see who holds Bitstamp BTC and fiat IOUs, and how much.

$ rippler monitor streams:[ledger,transactions]

This one monitors Ripple transactions in real-time similar to #ripple-watch, but more interesting since it shows known account names instead of opaque addresses. Ctrl-C to stop it.

$ rippler path_find source_account:RippleUnion destination_account:singpolyma 'destination_amount:{currency:CAD, value:1}'

This one finds possible paths for amounts of money between two addresses, and prints out what the source would have to send to get that amount to the destination.

Contacts database

Contacts database is in lib/rippler/contacts.rb, mostly auto-scraped from Bitcointalk. It may be a bit inaccurate, you can modify/extend it as you see fit. See 'Contributing' section below re how you can add new address(es) to Rippler contacts database. If this is too complicated for you, just open new issue with your contact request.

You may also want to use 'bin/scraper' script to auto-scrape Ripple contacts from Bitcointalk topics:

$ scraper https://bitcointalk.org/index.php?topic=145506.4100

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

rippler's People

Contributors

arvicco avatar singpolyma avatar tomgalvin594 avatar

Watchers

James Cloos avatar

Forkers

all-and-proust

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.