zhangsoledad / ckb-sdk-ruby

Ruby SDK for CKB

Home Page:https://www.nervos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ckb-sdk-ruby

Build Status

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.

About

Ruby SDK for CKB

https://www.nervos.org

License:MIT License


Languages

Language:Ruby 99.5%Language:Shell 0.5%