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, 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
#asset ⇒ Object
(string): The asset being sent
558 559 560 |
# File 'lib/counterparty/resources.rb', line 558 def asset @asset end |
#block_index ⇒ Object
(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 |
#destination ⇒ Object
(string): The destination address of the send
555 556 557 |
# File 'lib/counterparty/resources.rb', line 555 def destination @destination end |
#quantity ⇒ Object
(integer): The quantity of the specified asset sent
561 562 563 |
# File 'lib/counterparty/resources.rb', line 561 def quantity @quantity end |
#source ⇒ Object
(string): The source address of the send
552 553 554 |
# File 'lib/counterparty/resources.rb', line 552 def source @source end |
#tx_hash ⇒ Object
(string): The transaction hash
546 547 548 |
# File 'lib/counterparty/resources.rb', line 546 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
543 544 545 |
# File 'lib/counterparty/resources.rb', line 543 def tx_index @tx_index end |
#validity ⇒ Object
(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 |