Class: Counterparty::Cancel

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

Overview

An object that describes a cancellation of a (previously) open order or bet.

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)



303
304
305
# File 'lib/counterparty/resources.rb', line 303

def block_index
  @block_index
end

#offer_hashObject

(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

#sourceObject

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

(string): The transaction hash



300
301
302
# File 'lib/counterparty/resources.rb', line 300

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



297
298
299
# File 'lib/counterparty/resources.rb', line 297

def tx_index
  @tx_index
end

#validityObject

(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