Class: Counterparty::OrderMatch

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

Overview

An object that describes a specific occurance of two orders being matched (either partially, or fully)

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

#backward_assetObject

(string): The asset exchanged FROM the second order to the first order



529
530
531
# File 'lib/counterparty/resources.rb', line 529

def backward_asset
  @backward_asset
end

#backward_quantityObject

(integer): The quantity of the specified backward asset



532
533
534
# File 'lib/counterparty/resources.rb', line 532

def backward_quantity
  @backward_quantity
end

#forward_assetObject

(string): The asset exchanged FROM the first order to the second order



523
524
525
# File 'lib/counterparty/resources.rb', line 523

def forward_asset
  @forward_asset
end

#forward_quantityObject

(integer): The quantity of the specified forward asset



526
527
528
# File 'lib/counterparty/resources.rb', line 526

def forward_quantity
  @forward_quantity
end

#tx0_addressObject

(string): The address that issued the first (earlier) order



505
506
507
# File 'lib/counterparty/resources.rb', line 505

def tx0_address
  @tx0_address
end

#tx0_block_indexObject

(integer): The Bitcoin block index of the first order



499
500
501
# File 'lib/counterparty/resources.rb', line 499

def tx0_block_index
  @tx0_block_index
end

#tx0_expirationObject

(integer): The number of blocks over which the first order was valid



502
503
504
# File 'lib/counterparty/resources.rb', line 502

def tx0_expiration
  @tx0_expiration
end

#tx0_hashObject

(string): The Bitcoin transaction hash of the first order



496
497
498
# File 'lib/counterparty/resources.rb', line 496

def tx0_hash
  @tx0_hash
end

#tx0_indexObject

(integer): The Bitcoin transaction index of the first (earlier) order



493
494
495
# File 'lib/counterparty/resources.rb', line 493

def tx0_index
  @tx0_index
end

#tx1_addressObject

(string): The address that issued the second order



517
518
519
# File 'lib/counterparty/resources.rb', line 517

def tx1_address
  @tx1_address
end

#tx1_block_indexObject

(integer): The block index of the second order



514
515
516
# File 'lib/counterparty/resources.rb', line 514

def tx1_block_index
  @tx1_block_index
end

#tx1_expirationObject

(integer): The number of blocks over which the second order was valid



520
521
522
# File 'lib/counterparty/resources.rb', line 520

def tx1_expiration
  @tx1_expiration
end

#tx1_hashObject

(string): The transaction hash of the second order



511
512
513
# File 'lib/counterparty/resources.rb', line 511

def tx1_hash
  @tx1_hash
end

#tx1_indexObject

(integer): The transaction index of the second (matching) order



508
509
510
# File 'lib/counterparty/resources.rb', line 508

def tx1_index
  @tx1_index
end

#validityObject

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



536
537
538
# File 'lib/counterparty/resources.rb', line 536

def validity
  @validity
end