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, find, #initialize, #save!, to_create_request, to_do_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)



284
285
286
# File 'lib/counterparty/resources.rb', line 284

def block_index
  @block_index
end

#offer_hashObject

(string): The transaction hash of the order or bet cancelled



290
291
292
# File 'lib/counterparty/resources.rb', line 290

def offer_hash
  @offer_hash
end

#sourceObject

(string): The address with the open order or bet that was cancelled



287
288
289
# File 'lib/counterparty/resources.rb', line 287

def source
  @source
end

#tx_hashObject

(string): The transaction hash



281
282
283
# File 'lib/counterparty/resources.rb', line 281

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



278
279
280
# File 'lib/counterparty/resources.rb', line 278

def tx_index
  @tx_index
end

#validityObject

(string): Set to “valid” if a valid burn. Any other setting signifies an invalid/improper burn



294
295
296
# File 'lib/counterparty/resources.rb', line 294

def validity
  @validity
end