Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.42 KB

ReadMe.md

File metadata and controls

49 lines (40 loc) · 1.42 KB

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"
})