ckb-sdk-ruby
Ruby SDK for CKB
Prerequisites
Please be noted that the SDK depends on the bitcoin-secp256k1 gem and the rbnacl gem, which require manual install of secp256k1 and libsodium library. Follow this and this to install them locally.
Installation
Add this line to your application's Gemfile:
gem 'ckb-sdk-ruby', github: 'nervosnetwork/ckb-sdk-ruby', require: 'ckb'
And then execute:
$ bundle
Usage
RPC interface:
api = CKB::API.new
# using RPC `get_tip_header`
api.get_tip_header
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
License
The gem is available as open source under the terms of the MIT License.
Changelog
See CHANGELOG for more information.