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, 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

#backward_assetObject

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



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

def backward_asset
  @backward_asset
end

#backward_quantityObject

(integer): The quantity of the specified backward asset



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

def backward_quantity
  @backward_quantity
end

#forward_assetObject

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



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

def forward_asset
  @forward_asset
end

#forward_quantityObject

(integer): The quantity of the specified forward asset



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

def forward_quantity
  @forward_quantity
end

#tx0_addressObject

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



486
487
488
# File 'lib/counterparty/resources.rb', line 486

def tx0_address
  @tx0_address
end

#tx0_block_indexObject

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



480
481
482
# File 'lib/counterparty/resources.rb', line 480

def tx0_block_index
  @tx0_block_index
end

#tx0_expirationObject

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



483
484
485
# File 'lib/counterparty/resources.rb', line 483

def tx0_expiration
  @tx0_expiration
end

#tx0_hashObject

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



477
478
479
# File 'lib/counterparty/resources.rb', line 477

def tx0_hash
  @tx0_hash
end

#tx0_indexObject

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



474
475
476
# File 'lib/counterparty/resources.rb', line 474

def tx0_index
  @tx0_index
end

#tx1_addressObject

(string): The address that issued the second order



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

def tx1_address
  @tx1_address
end

#tx1_block_indexObject

(integer): The block index of the second order



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

def tx1_block_index
  @tx1_block_index
end

#tx1_expirationObject

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



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

def tx1_expiration
  @tx1_expiration
end

#tx1_hashObject

(string): The transaction hash of the second order



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

def tx1_hash
  @tx1_hash
end

#tx1_indexObject

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



489
490
491
# File 'lib/counterparty/resources.rb', line 489

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



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

def validity
  @validity
end