Project

eosrb

0.0
No commit activity in last 3 years
No release in over 3 years
Easily interact with the EOS blockchain-
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

eosrb

EOS RPC-API client

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

Usage

require 'eosrb'

# Defaults to EOS::Client.new('http://localhost:8888')
c = EOS::Client.new
puts c.chain_get_info

Connect to EOS Argentina

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

Instalation

gem install eosrb

Build and install

git clone git@github.com:EOSArgentina/eosrb.git
cd eosrb
gem build eosrb
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

/v1/chain/get_info => chain_get_info

in general

/v1/api/method => api_method

Credits

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