# rpcit

> Steemit JSON-RPC 2.0 Client

Latest version **1.0.1** (published 2018-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install rpcit
pnpm add rpcit
yarn add rpcit
bun add rpcit
```

Provides the command `rpcit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-01 |
| First published | 2018-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Johan Nordberg |
| Maintainers | jnordberg |

## Links

- npm: https://www.npmjs.com/package/rpcit
- Repository: https://github.com/jnordberg/rpcit
- Homepage: https://github.com/jnordberg/rpcit#readme
- Issues: https://github.com/jnordberg/rpcit/issues
- npm.io page: https://npm.io/package/rpcit

## Dependencies (4)

- [verror](https://npm.io/package/verror.md) ^1.10.0
- [commander](https://npm.io/package/commander.md) ^2.13.0
- [@steemit/rpc-auth](https://npm.io/package/@steemit/rpc-auth.md) ^1.1.1
- [@steemit/koa-jsonrpc](https://npm.io/package/@steemit/koa-jsonrpc.md) ^1.1.2

## Recent versions

- 1.0.1 (latest) — 2018-02-01
- 1.0.0 — 2018-01-21

## README

rpcit
=====

Command-line [Steem-flavoured](https://github.com/steemit/rpc-auth) [JSON-RPC 2.0](http://www.jsonrpc.org/specification) Client.


Install
-------

With [node.js](https://nodejs.org) installed do:

```bash
$ npm install -g rpcit
```

Or with [yarn](https://yarnpkg.com):

```bash
$ 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!*

---
_Source: https://npm.io/package/rpcit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
