Class: Counterparty::BTCPay

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

Overview

An object that matches a request to settle an Order Match for which BTC is owed.

Instance Attribute Summary collapse

Attributes inherited from CounterResource

#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes

Class Method Summary collapse

Methods inherited from CounterResource

#==, 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)



213
214
215
# File 'lib/counterparty/resources.rb', line 213

def block_index
  @block_index
end

#order_match_idObject

(string):



219
220
221
# File 'lib/counterparty/resources.rb', line 219

def order_match_id
  @order_match_id
end

#sourceObject

source (string):



216
217
218
# File 'lib/counterparty/resources.rb', line 216

def source
  @source
end

#tx_hashObject

(string): The transaction hash



210
211
212
# File 'lib/counterparty/resources.rb', line 210

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



207
208
209
# File 'lib/counterparty/resources.rb', line 207

def tx_index
  @tx_index
end

#validityObject

(string): Set to “valid” if valid



222
223
224
# File 'lib/counterparty/resources.rb', line 222

def validity
  @validity
end

Class Method Details

.api_nameObject



224
# File 'lib/counterparty/resources.rb', line 224

def self.api_name; 'btcpays'; end