Class: Counterparty::Send

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

Overview

An object that describes a specific send (e.g. “simple send”, of XCP, or a user defined asset).

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

#assetObject

(string): The asset being sent



558
559
560
# File 'lib/counterparty/resources.rb', line 558

def asset
  @asset
end

#block_indexObject

(integer): The block index (block number in the block chain)



549
550
551
# File 'lib/counterparty/resources.rb', line 549

def block_index
  @block_index
end

#destinationObject

(string): The destination address of the send



555
556
557
# File 'lib/counterparty/resources.rb', line 555

def destination
  @destination
end

#quantityObject

(integer): The quantity of the specified asset sent



561
562
563
# File 'lib/counterparty/resources.rb', line 561

def quantity
  @quantity
end

#sourceObject

(string): The source address of the send



552
553
554
# File 'lib/counterparty/resources.rb', line 552

def source
  @source
end

#tx_hashObject

(string): The transaction hash



546
547
548
# File 'lib/counterparty/resources.rb', line 546

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



543
544
545
# File 'lib/counterparty/resources.rb', line 543

def tx_index
  @tx_index
end

#validityObject

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



565
566
567
# File 'lib/counterparty/resources.rb', line 565

def validity
  @validity
end