Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/block-chen/blocksdk-ruby

Past data inquiry, block inquiry, block chain information inquiry, address wallet creation, event web hook
https://github.com/block-chen/blocksdk-ruby

bitcoin bitcoin-api bitcoin-wallet dash erc20 erc20-tokens ethereum ethereum-address ethereum-api litecoin litecoin-wallet monero monero-api monero-wallet

Last synced: 9 days ago
JSON representation

Past data inquiry, block inquiry, block chain information inquiry, address wallet creation, event web hook

Awesome Lists containing this project

README

        

# BLOCKSDK for Ruby
[![@BLOCKSDK on Twitter](https://img.shields.io/badge/twitter-%40BLOCKSDK-blue.svg)](https://twitter.com/BlockSdk1)
[![@BLOCKSDK on Facebook](https://img.shields.io/badge/facebook-%40BLOCKSDK-blue.svg)](https://www.facebook.com/blocksdk)
[![Gem Version](https://badge.fury.io/rb/blocksdk.svg)](https://badge.fury.io/rb/blocksdk)
[![DOCS](https://readthedocs.org/projects/sagemaker/badge/?version=stable)](https://docs-v2.blocksdk.com/)

## SDK Documentation
[ Our BlockSDK-RUBY Page ](https://docs.blocksdk.com/) includes all the documentation related to RUBY SDK. Sample Codes, to Releases. Here are few quick links to get you there faster.
* [ BlockSDK Developer Docs]

## Installation

The BLOCKSDK for Ruby is available from RubyGems.
should pick the specific BLOCKSDK service gems to install.

```ruby
gem install blocksdk
gem install httparty
gem install json
```

## Quick Examples
### Create an Bitcoin client
```ruby
blockSDK = BlockSDK.new('YOU TOKEN')
btcClient = blockSDK.createBitcoin()
```
### Get Address info
```ruby
addressInfo = btcClient.getAddressInfo({
"address" => "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX",
"rawtx" => true,
"reverse" => true,
"offset" => 0,
"limit" => 10
})

puts addressInfo
```

### Create an Bitcoin Wallet
```ruby
wallet = btcClient.createWallet({
"name" : "test"
})
```

[BlockSDK Developer Docs]: https://docs.blocksdk.com