Seamlessly interact with the EOS blockchain to kickstart your Ruby/RoR project.
require 'eosrb'
# Defaults to EOS::Client.new('http://localhost:8888')
c = EOS::Client.new
puts c.chain_get_info
# 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!'
gem install eosrb
git clone [email protected]:EOSArgentina/eosrb.git
cd eosrb
gem build eosrb
gem install eosrb-0.0.1.gem
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
Ruby implementation by EOS Argentina. API Specs based on py-eos-api and eosjs-api.