项目作者: EOSArgentina

项目描述 :
EOS RPC-API client. Easily interact with the EOS blockchain.
高级语言: Ruby
项目地址: git://github.com/EOSArgentina/eosrb.git
创建时间: 2018-06-11T18:48:29Z
项目社区:https://github.com/EOSArgentina/eosrb

开源协议:MIT License

下载


eosrb

EOS RPC-API client

Seamlessly interact with the EOS blockchain to kickstart your Ruby/RoR project.

Usage

  1. require 'eosrb'
  2. # Defaults to EOS::Client.new('http://localhost:8888')
  3. c = EOS::Client.new
  4. puts c.chain_get_info

Connect to EOS Argentina

  1. # Connects to https://api,eosargentina,io
  2. c = EOS::Client.ar
  3. prods = c.chain_get_producers(json: true)['rows'].map { |p| p['owner'] }
  4. puts prods.include?('argentinaeos') ? 'awsm!' : 'aycaramba!'

Instalation

  1. gem install eosrb

Build and install

  1. git clone git@github.com:EOSArgentina/eosrb.git
  2. cd eosrb
  3. gem build eosrb
  4. gem install eosrb-0.0.1.gem

Available methods

Check the API specs for details but every RPC method available through the client by this simple example

  1. /v1/chain/get_info => chain_get_info

in general

  1. /v1/api/method => api_method

Credits

Ruby implementation by EOS Argentina. API Specs based on py-eos-api and eosjs-api.