Git Product home page Git Product logo

rpcit's Introduction

rpcit

Command-line Steem-flavoured JSON-RPC 2.0 Client.

Install

With node.js installed do:

$ npm install -g rpcit

Or with yarn:

$ yarn global add rpcit

Usage


  Usage: rpcit [options] <method> [params...]


  Options:

    -a, --address [url]  address to the RPC server (default: https://api.steemit.com)
    --dev                set address to https://api.steemitdev.com
    --stage              set address to https://api.steemitstage.com
    -s, --sign           sign the request using credentials from env vars RPCIT_ACCOUNT and RPCIT_KEY
    -r, --raw            write the raw JSON-RPC 2.0 response to stdout
    -v, --verbose        print debug info to stderr
    -h, --help           output usage information


  Params:

    Params can be passed as positional or by keyword
      param1 param2 param3 OR bar=param2 foo=param1

    You can pass JSON by prefixing the param with a colon (:)
      :'{"foo": "bar"}' OR key:='{"foo": "bar"}'

    Params can be read from stdin by passing a dash (-)
      $ echo '["foo", "bar"]' | rpcit some_method -

    Pass an underscore (_) for newline separated JSON, one line per param
      $ echo '{"foo": "bar"}\nfalse' | rpcit baz _


  Examples:

    Get latest global props
      $ rpcit get_dynamic_global_properties

    Get account info
      $ rpcit get_accounts :'["almost-digital"]'

    Get the account details for the first 100 accounts starting with foo
      $ rpcit lookup_accounts foo 100 | rpcit get_accounts _

    Get the witness-decided chain properties from gtg's node
      $ rpcit -a https://gtg.steem.house:8090 get_chain_properties

    Get user data from conveyor
      $ RPCIT_ACCOUNT=admin RPCIT_KEY=5POSTINGWIF rpcit -s conveyor.get_user_data user


Share and Enjoy!

rpcit's People

Contributors

jnordberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.