Class: Sequence::Transaction
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Sequence::Transaction
- Defined in:
- lib/sequence/transaction.rb
Overview
A transaction is an atomic update to the state of the ledger. Transactions can issue new asset units, transfer of asset units from one account to another, and/or the retire asset units from an account.
Defined Under Namespace
Classes: Action, Builder, ClientModule, Query
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
List of actions taken by the transaction.
-
#contracts ⇒ Object
readonly
List of contracts created by the transaction.
-
#id ⇒ Object
readonly
A unique ID.
-
#reference_data ⇒ Object
readonly
User-specified key-value data embedded into the transaction.
-
#sequence_number ⇒ Object
readonly
Sequence number of the transaction.
-
#timestamp ⇒ Object
readonly
Time of transaction.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Sequence::ResponseObject
Instance Attribute Details
#actions ⇒ Object (readonly)
List of actions taken by the transaction.
36 |
# File 'lib/sequence/transaction.rb', line 36 attrib(:actions) { |raw| raw.map { |v| Action.new(v) } } |
#contracts ⇒ Object (readonly)
List of contracts created by the transaction.
41 |
# File 'lib/sequence/transaction.rb', line 41 attrib(:contracts) { |raw| raw.map { |v| Contract.new(v) } } |
#id ⇒ Object (readonly)
A unique ID.
16 |
# File 'lib/sequence/transaction.rb', line 16 attrib :id |
#reference_data ⇒ Object (readonly)
User-specified key-value data embedded into the transaction.
31 |
# File 'lib/sequence/transaction.rb', line 31 attrib :reference_data |
#sequence_number ⇒ Object (readonly)
Sequence number of the transaction.
26 |
# File 'lib/sequence/transaction.rb', line 26 attrib :sequence_number |
#timestamp ⇒ Object (readonly)
Time of transaction.
21 |
# File 'lib/sequence/transaction.rb', line 21 attrib :timestamp, rfc3339_time: true |