module Counterparty
Inspriration heavily lifted from:
Inspriration heavily lifted from:
The main module, under which all classes in the library are defined.
Constants
- ONE_BTC
One BTC, in units of Satoshi
- ONE_XCP
One XCP, in units of Satoshi
- VERSION
The library version string
Attributes
bitcoin[W]
Sets/Gets the default bitcoin (connection) object
connection[W]
Sets/Gets the default connection object
Public Class Methods
bitcoin()
click to toggle source
Returns the current default bitcoin object, or creates a new test-mode connection, if none has been defined
# File lib/counterparty_ruby.rb, line 67 def bitcoin @bitcoin || BlockrIo.new end
connection()
click to toggle source
Returns the current default connection object, or creates a new test-mode connection, if none has been defined
# File lib/counterparty_ruby.rb, line 61 def connection @connection || Connection.new end
production!()
click to toggle source
Establishes the default connection for new objects as being the default counterparty production mode port/user/ip
# File lib/counterparty_ruby.rb, line 73 def production! @connection = Connection.new @bitcoin = BlockrIo.new end
test!()
click to toggle source
Establishes the default connection for new objects as being the default counterparty test mode port/user/ip
# File lib/counterparty_ruby.rb, line 80 def test! @connection = Connection.new 14000 @bitcoin = BlockrIo.new true end