Class: Counterparty::Send
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Send
- 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
-
#asset ⇒ Object
(string): The asset being sent.
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#destination ⇒ Object
(string): The destination address of the send.
-
#quantity ⇒ Object
(integer): The quantity of the specified asset sent.
-
#source ⇒ Object
(string): The source address of the send.
-
#tx_hash ⇒ Object
(string): The transaction hash.
-
#tx_index ⇒ Object
(integer): The transaction index.
-
#validity ⇒ Object
(string): Set to “valid” if a valid send.
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
#asset ⇒ Object
(string): The asset being sent
539 540 541 |
# File 'lib/counterparty/resources.rb', line 539 def asset @asset end |
#block_index ⇒ Object
(integer): The block index (block number in the block chain)
530 531 532 |
# File 'lib/counterparty/resources.rb', line 530 def block_index @block_index end |
#destination ⇒ Object
(string): The destination address of the send
536 537 538 |
# File 'lib/counterparty/resources.rb', line 536 def destination @destination end |
#quantity ⇒ Object
(integer): The quantity of the specified asset sent
542 543 544 |
# File 'lib/counterparty/resources.rb', line 542 def quantity @quantity end |
#source ⇒ Object
(string): The source address of the send
533 534 535 |
# File 'lib/counterparty/resources.rb', line 533 def source @source end |
#tx_hash ⇒ Object
(string): The transaction hash
527 528 529 |
# File 'lib/counterparty/resources.rb', line 527 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
524 525 526 |
# File 'lib/counterparty/resources.rb', line 524 def tx_index @tx_index end |
#validity ⇒ Object
(string): Set to “valid” if a valid send. Any other setting signifies an invalid/improper send
546 547 548 |
# File 'lib/counterparty/resources.rb', line 546 def validity @validity end |