Sha256: e67b98037cc8445d3d4746c7c6182b7af3716febeb7809678e99b77c3b3644b4
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
require 'blocktrail' client = Blocktrail::Client.new(api_key: 'YOUR_API_KEY_HERE', api_secret: 'YOUR_API_SECRET_HERE') # If the enviroment variables YOUR_API_KEY_HERE and YOUR_API_SECRET_HERE' # are defined you can just do: client = Blocktrail::Client.new address = client.address('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp') client.price client.address_transactions('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp')['data'] client.verify_address('16dwJmR4mX5RguGrocMfN9Q9FR2kZcLw2z', 'HPMOHRgPSMKdXrU6AqQs/i9S7alOakkHsJiqLGmInt05Cxj6b/WhS7kJxbIQxKmDW08YKzoFnbVZIoTI2qofEzk=') # with testnet, debug info for the Bitcoin network: client = Blocktrail::Client.new(api_key: 'YOUR_API_KEY_HERE', api_secret: 'YOUR_API_SECRET_HERE', coin: 'btc', api_version: 'v1', testnet: true, debug: true) # If the enviroment variables BLOCKTRAIL_API_KEY and BLOCKTRAIL_API_SECRET # are defined you can just do: client = Blocktrail::Client.new(coin: 'bcc', testnet: true, debug: true)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blocktrail-0.2.4 | examples/simple_data_api_usage.rb |
blocktrail-0.2.3 | examples/simple_data_api_usage.rb |