Skip to content

EOS RPC-API client. Easily interact with the EOS blockchain.

License

Notifications You must be signed in to change notification settings

EOSArgentina/eosrb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.

About

EOS RPC-API client. Easily interact with the EOS blockchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages