Class: Counterparty::Cancel
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Cancel
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes a cancellation of a (previously) open order or bet.
Instance Attribute Summary collapse
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#offer_hash ⇒ Object
(string): The transaction hash of the order or bet cancelled.
-
#source ⇒ Object
(string): The address with the open order or bet that was cancelled.
-
#tx_hash ⇒ Object
(string): The transaction hash.
-
#tx_index ⇒ Object
(integer): The transaction index.
-
#validity ⇒ Object
(string): Set to “valid” if a valid burn.
Attributes inherited from CounterResource
#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes
Method Summary
Methods inherited from CounterResource
#==, api_name, bitcoin, find, #initialize, #save!, to_create_request, to_get_request, #to_raw_tx, #to_signed_tx
Constructor Details
This class inherits a constructor from Counterparty::CounterResource
Instance Attribute Details
#block_index ⇒ Object
(integer): The block index (block number in the block chain)
303 304 305 |
# File 'lib/counterparty/resources.rb', line 303 def block_index @block_index end |
#offer_hash ⇒ Object
(string): The transaction hash of the order or bet cancelled
309 310 311 |
# File 'lib/counterparty/resources.rb', line 309 def offer_hash @offer_hash end |
#source ⇒ Object
(string): The address with the open order or bet that was cancelled
306 307 308 |
# File 'lib/counterparty/resources.rb', line 306 def source @source end |
#tx_hash ⇒ Object
(string): The transaction hash
300 301 302 |
# File 'lib/counterparty/resources.rb', line 300 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
297 298 299 |
# File 'lib/counterparty/resources.rb', line 297 def tx_index @tx_index end |
#validity ⇒ Object
(string): Set to “valid” if a valid burn. Any other setting signifies an invalid/improper burn
313 314 315 |
# File 'lib/counterparty/resources.rb', line 313 def validity @validity end |