Class: Counterparty::Burn

Inherits:
CounterResource show all
Defined in:
lib/counterparty/resources.rb

Overview

An object that describes an instance of a specific burn.

Instance Attribute Summary collapse

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_indexObject

(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

#burnedObject

(integer): The quantity of BTC burned



242
243
244
# File 'lib/counterparty/resources.rb', line 242

def burned
  @burned
end

#earnedObject

(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

#quantityObject

(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

#sourceObject

(string): The address the burn was performed from



239
240
241
# File 'lib/counterparty/resources.rb', line 239

def source
  @source
end

#statusObject

(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_hashObject

(string): The transaction hash



233
234
235
# File 'lib/counterparty/resources.rb', line 233

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



230
231
232
# File 'lib/counterparty/resources.rb', line 230

def tx_index
  @tx_index
end

#validityObject

(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