Class: Chain::Transaction::Input
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Chain::Transaction::Input
- Defined in:
- lib/chain/transaction.rb
Defined Under Namespace
Classes: SpentOutput
Instance Attribute Summary collapse
-
#account_alias ⇒ String
readonly
The alias of the account transferring the asset (possibly null if the input is an issuance or an unspent output is specified).
-
#account_id ⇒ String
readonly
The id of the account transferring the asset (possibly null if the input is an issuance or an unspent output is specified).
-
#account_tags ⇒ String
readonly
The tags associated with the account (possibly null).
-
#amount ⇒ Integer
readonly
The number of units of the asset being issued or spent.
-
#asset_alias ⇒ String
readonly
The alias of the asset being issued or spent (possibly null).
-
#asset_definition ⇒ Hash
readonly
The definition of the asset being issued or spent (possibly null).
-
#asset_id ⇒ String
readonly
The id of the asset being issued or spent.
-
#asset_is_local ⇒ Boolean
readonly
A flag indicating whether the asset being issued or spent is local.
-
#asset_tags ⇒ Hash
readonly
The tags of the asset being issued or spent (possibly null).
-
#control_program ⇒ String
readonly
deprecated
Deprecated.
(as of version 1.1) Do not use this field.
-
#input_witness ⇒ String
readonly
deprecated
Deprecated.
(as of version 1.1) Do not use this field.
-
#is_local ⇒ Boolean
readonly
A flag indicating if the input is local.
-
#issuance_program ⇒ String
readonly
A program specifying a predicate for issuing an asset (possibly null if input is not an issuance).
-
#reference_data ⇒ Hash
readonly
User specified, unstructured data embedded within an input (possibly null).
-
#spent_output ⇒ SpentOutput
readonly
deprecated
Deprecated.
(as of version 1.1) Use #spent_output_id instead.
-
#spent_output_id ⇒ String
readonly
The id of the output consumed by this input.
-
#type ⇒ String
readonly
The type of the input.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Chain::ResponseObject
Instance Attribute Details
#account_alias ⇒ String (readonly)
The alias of the account transferring the asset (possibly null if the input is an issuance or an unspent output is specified).
183 |
# File 'lib/chain/transaction.rb', line 183 attrib :account_alias |
#account_id ⇒ String (readonly)
The id of the account transferring the asset (possibly null if the input is an issuance or an unspent output is specified).
177 |
# File 'lib/chain/transaction.rb', line 177 attrib :account_id |
#account_tags ⇒ String (readonly)
The tags associated with the account (possibly null).
188 |
# File 'lib/chain/transaction.rb', line 188 attrib :account_tags |
#amount ⇒ Integer (readonly)
The number of units of the asset being issued or spent.
160 |
# File 'lib/chain/transaction.rb', line 160 attrib :amount |
#asset_alias ⇒ String (readonly)
The alias of the asset being issued or spent (possibly null).
140 |
# File 'lib/chain/transaction.rb', line 140 attrib :asset_alias |
#asset_definition ⇒ Hash (readonly)
The definition of the asset being issued or spent (possibly null).
145 |
# File 'lib/chain/transaction.rb', line 145 attrib :asset_definition |
#asset_id ⇒ String (readonly)
The id of the asset being issued or spent.
135 |
# File 'lib/chain/transaction.rb', line 135 attrib :asset_id |
#asset_is_local ⇒ Boolean (readonly)
A flag indicating whether the asset being issued or spent is local.
155 |
# File 'lib/chain/transaction.rb', line 155 attrib :asset_is_local |
#asset_tags ⇒ Hash (readonly)
The tags of the asset being issued or spent (possibly null).
150 |
# File 'lib/chain/transaction.rb', line 150 attrib :asset_tags |
#control_program ⇒ String (readonly)
(as of version 1.1) Do not use this field.
204 |
# File 'lib/chain/transaction.rb', line 204 attrib :control_program |
#input_witness ⇒ String (readonly)
(as of version 1.1) Do not use this field.
193 |
# File 'lib/chain/transaction.rb', line 193 attrib :input_witness |
#is_local ⇒ Boolean (readonly)
A flag indicating if the input is local.
215 |
# File 'lib/chain/transaction.rb', line 215 attrib :is_local |
#issuance_program ⇒ String (readonly)
A program specifying a predicate for issuing an asset (possibly null if input is not an issuance).
199 |
# File 'lib/chain/transaction.rb', line 199 attrib :issuance_program |
#reference_data ⇒ Hash (readonly)
User specified, unstructured data embedded within an input (possibly null).
210 |
# File 'lib/chain/transaction.rb', line 210 attrib :reference_data |
#spent_output ⇒ SpentOutput (readonly)
(as of version 1.1) Use #spent_output_id instead.
The output consumed by this input.
171 |
# File 'lib/chain/transaction.rb', line 171 attrib(:spent_output) { |raw| SpentOutput.new(raw) } |
#spent_output_id ⇒ String (readonly)
The id of the output consumed by this input. ID is nil if this is an issuance input.
165 |
# File 'lib/chain/transaction.rb', line 165 attrib :spent_output_id |
#type ⇒ String (readonly)
The type of the input.
Possible values are “issue”, “spend”.
130 |
# File 'lib/chain/transaction.rb', line 130 attrib :type |