Skip to content

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

Notifications You must be signed in to change notification settings

Block-Chen/blocksdk-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

BLOCKSDK for Ruby

@BLOCKSDK on Twitter @BLOCKSDK on Facebook Gem Version DOCS

SDK Documentation

Our BlockSDK-RUBY Page includes all the documentation related to RUBY SDK. Sample Codes, to Releases. Here are few quick links to get you there faster.

Installation

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

gem install blocksdk
gem install httparty
gem install json

Quick Examples

Create an Bitcoin client

blockSDK = BlockSDK.new('YOU TOKEN')
btcClient = blockSDK.createBitcoin()

Get Address info

addressInfo = btcClient.getAddressInfo({
    "address" => "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX",
    "rawtx" => true,
    "reverse" => true,
    "offset" => 0,
    "limit" => 10
})

puts addressInfo

Create an Bitcoin Wallet

wallet = btcClient.createWallet({
    "name" : "test"
})