Class: Chain::Transaction::Output
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Chain::Transaction::Output
- Defined in:
- lib/chain/transaction.rb
Instance Attribute Summary collapse
-
#account_alias ⇒ String
readonly
The alias of the account controlling this output (possibly null if a control program is specified).
-
#account_id ⇒ String
readonly
The id of the account controlling this output (possibly null if a control program is specified).
-
#account_tags ⇒ Hash
readonly
The tags associated with the account controlling this output (possibly null if a control program is specified).
-
#amount ⇒ Integer
readonly
The number of units of the asset being controlled.
-
#asset_alias ⇒ String
readonly
The alias of the asset being controlled (possibly null).
-
#asset_definition ⇒ Hash
readonly
The definition of the asset being controlled (possibly null).
-
#asset_id ⇒ String
readonly
The id of the asset being controlled.
-
#asset_is_local ⇒ Boolean
readonly
A flag indicating whether the asset being controlled is local.
-
#asset_tags ⇒ Hash
readonly
The tags of the asset being controlled (possibly null).
-
#control_program ⇒ String
readonly
The control program which must be satisfied to transfer this output.
-
#id ⇒ String
readonly
The id of the output.
-
#is_local ⇒ Boolean
readonly
A flag indicating if the output is local.
-
#position ⇒ Integer
readonly
The output’s position in a transaction’s list of outputs.
-
#purpose ⇒ String
readonly
The purpose of the output.
-
#reference_data ⇒ Hash
readonly
User specified, unstructured data embedded within an input (possibly null).
-
#type ⇒ String
readonly
The type of the output.
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 controlling this output (possibly null if a control program is specified).
267 |
# File 'lib/chain/transaction.rb', line 267 attrib :account_alias |
#account_id ⇒ String (readonly)
The id of the account controlling this output (possibly null if a control program is specified).
261 |
# File 'lib/chain/transaction.rb', line 261 attrib :account_id |
#account_tags ⇒ Hash (readonly)
The tags associated with the account controlling this output (possibly null if a control program is specified).
273 |
# File 'lib/chain/transaction.rb', line 273 attrib :account_tags |
#amount ⇒ Integer (readonly)
The number of units of the asset being controlled.
255 |
# File 'lib/chain/transaction.rb', line 255 attrib :amount |
#asset_alias ⇒ String (readonly)
The alias of the asset being controlled (possibly null).
235 |
# File 'lib/chain/transaction.rb', line 235 attrib :asset_alias |
#asset_definition ⇒ Hash (readonly)
The definition of the asset being controlled (possibly null).
240 |
# File 'lib/chain/transaction.rb', line 240 attrib :asset_definition |
#asset_id ⇒ String (readonly)
The id of the asset being controlled.
230 |
# File 'lib/chain/transaction.rb', line 230 attrib :asset_id |
#asset_is_local ⇒ Boolean (readonly)
A flag indicating whether the asset being controlled is local.
250 |
# File 'lib/chain/transaction.rb', line 250 attrib :asset_is_local |
#asset_tags ⇒ Hash (readonly)
The tags of the asset being controlled (possibly null).
245 |
# File 'lib/chain/transaction.rb', line 245 attrib :asset_tags |
#control_program ⇒ String (readonly)
The control program which must be satisfied to transfer this output.
278 |
# File 'lib/chain/transaction.rb', line 278 attrib :control_program |
#id ⇒ String (readonly)
The id of the output.
206 |
# File 'lib/chain/transaction.rb', line 206 attrib :id |
#is_local ⇒ Boolean (readonly)
A flag indicating if the output is local.
289 |
# File 'lib/chain/transaction.rb', line 289 attrib :is_local |
#position ⇒ Integer (readonly)
The output’s position in a transaction’s list of outputs.
225 |
# File 'lib/chain/transaction.rb', line 225 attrib :position |
#purpose ⇒ String (readonly)
The purpose of the output.
Possible values are “receive” and “change”.
220 |
# File 'lib/chain/transaction.rb', line 220 attrib :purpose |
#reference_data ⇒ Hash (readonly)
User specified, unstructured data embedded within an input (possibly null).
284 |
# File 'lib/chain/transaction.rb', line 284 attrib :reference_data |
#type ⇒ String (readonly)
The type of the output.
Possible values are “control” and “retire”.
213 |
# File 'lib/chain/transaction.rb', line 213 attrib :type |