Class: Chain::Transaction
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Chain::Transaction
- Defined in:
- lib/chain/transaction.rb
Defined Under Namespace
Classes: Builder, ClientModule, Input, Output, Query, SubmitResponse, Template
Instance Attribute Summary collapse
-
#block_height ⇒ Integer
readonly
Height of the block containing a transaction.
-
#block_id ⇒ String
readonly
Unique identifier, or block hash, of the block containing a transaction.
-
#id ⇒ String
readonly
Unique transaction identifier.
-
#inputs ⇒ Array<Input>
readonly
List of specified inputs for a transaction.
-
#is_local ⇒ Boolean
readonly
A flag indicating one or more inputs or outputs are local.
-
#outputs ⇒ Array<Output>
readonly
List of specified outputs for a transaction.
-
#position ⇒ Integer
readonly
Position of a transaction within the block.
-
#reference_data ⇒ Hash
readonly
User specified, unstructured data embedded within a transaction.
-
#timestamp ⇒ Time
readonly
Time of transaction.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Chain::ResponseObject
Instance Attribute Details
#block_height ⇒ Integer (readonly)
Height of the block containing a transaction.
28 |
# File 'lib/chain/transaction.rb', line 28 attrib :block_height |
#block_id ⇒ String (readonly)
Unique identifier, or block hash, of the block containing a transaction.
23 |
# File 'lib/chain/transaction.rb', line 23 attrib :block_id |
#id ⇒ String (readonly)
Unique transaction identifier.
13 |
# File 'lib/chain/transaction.rb', line 13 attrib :id |
#inputs ⇒ Array<Input> (readonly)
List of specified inputs for a transaction.
48 |
# File 'lib/chain/transaction.rb', line 48 attrib(:inputs) { |raw| raw.map { |v| Input.new(v) } } |
#is_local ⇒ Boolean (readonly)
A flag indicating one or more inputs or outputs are local.
43 |
# File 'lib/chain/transaction.rb', line 43 attrib :is_local |
#outputs ⇒ Array<Output> (readonly)
List of specified outputs for a transaction.
53 |
# File 'lib/chain/transaction.rb', line 53 attrib(:outputs) { |raw| raw.map { |v| Output.new(v) } } |
#position ⇒ Integer (readonly)
Position of a transaction within the block.
33 |
# File 'lib/chain/transaction.rb', line 33 attrib :position |
#reference_data ⇒ Hash (readonly)
User specified, unstructured data embedded within a transaction.
38 |
# File 'lib/chain/transaction.rb', line 38 attrib :reference_data |
#timestamp ⇒ Time (readonly)
Time of transaction.
18 |
# File 'lib/chain/transaction.rb', line 18 attrib :timestamp, rfc3339_time: true |