Class: Counterparty::Burn
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Burn
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes an instance of a specific burn.
Instance Attribute Summary collapse
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#burned ⇒ Object
(integer): The quantity of BTC burned.
-
#earned ⇒ Object
(integer): The quantity of XPC actually earned from the burn (takes into account any bonus quantitys, 1 BTC limitation, etc).
-
#quantity ⇒ Object
(integer): The amount of BTC to burn (only used in the Create Burn).
-
#source ⇒ Object
(string): The address the burn was performed from.
-
#status ⇒ Object
(string): Set to “valid” if a valid burn.
-
#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)
236 237 238 |
# File 'lib/counterparty/resources.rb', line 236 def block_index @block_index end |
#burned ⇒ Object
(integer): The quantity of BTC burned
242 243 244 |
# File 'lib/counterparty/resources.rb', line 242 def burned @burned end |
#earned ⇒ Object
(integer): The quantity of XPC actually earned from the burn (takes into account any bonus quantitys, 1 BTC limitation, etc)
246 247 248 |
# File 'lib/counterparty/resources.rb', line 246 def earned @earned end |
#quantity ⇒ Object
(integer): The amount of BTC to burn (only used in the Create Burn)
257 258 259 |
# File 'lib/counterparty/resources.rb', line 257 def quantity @quantity end |
#source ⇒ Object
(string): The address the burn was performed from
239 240 241 |
# File 'lib/counterparty/resources.rb', line 239 def source @source end |
#status ⇒ Object
(string): Set to “valid” if a valid burn. Any other setting signifies an invalid/improper burn
254 255 256 |
# File 'lib/counterparty/resources.rb', line 254 def status @status end |
#tx_hash ⇒ Object
(string): The transaction hash
233 234 235 |
# File 'lib/counterparty/resources.rb', line 233 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
230 231 232 |
# File 'lib/counterparty/resources.rb', line 230 def tx_index @tx_index end |
#validity ⇒ Object
(string): Set to “valid” if a valid burn. Any other setting signifies an invalid/improper burn
250 251 252 |
# File 'lib/counterparty/resources.rb', line 250 def validity @validity end |