Class: Chain::Transaction::Output

Inherits:
ResponseObject show all
Defined in:
lib/chain/transaction.rb

Instance Attribute Summary collapse

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_aliasString (readonly)

The alias of the account controlling this output (possibly null if a control program is specified).

Returns:

  • (String)


267
# File 'lib/chain/transaction.rb', line 267

attrib :account_alias

#account_idString (readonly)

The id of the account controlling this output (possibly null if a control program is specified).

Returns:

  • (String)


261
# File 'lib/chain/transaction.rb', line 261

attrib :account_id

#account_tagsHash (readonly)

The tags associated with the account controlling this output (possibly null if a control program is specified).

Returns:

  • (Hash)


273
# File 'lib/chain/transaction.rb', line 273

attrib :account_tags

#amountInteger (readonly)

The number of units of the asset being controlled.

Returns:

  • (Integer)


255
# File 'lib/chain/transaction.rb', line 255

attrib :amount

#asset_aliasString (readonly)

The alias of the asset being controlled (possibly null).

Returns:

  • (String)


235
# File 'lib/chain/transaction.rb', line 235

attrib :asset_alias

#asset_definitionHash (readonly)

The definition of the asset being controlled (possibly null).

Returns:

  • (Hash)


240
# File 'lib/chain/transaction.rb', line 240

attrib :asset_definition

#asset_idString (readonly)

The id of the asset being controlled.

Returns:

  • (String)


230
# File 'lib/chain/transaction.rb', line 230

attrib :asset_id

#asset_is_localBoolean (readonly)

A flag indicating whether the asset being controlled is local.

Returns:

  • (Boolean)


250
# File 'lib/chain/transaction.rb', line 250

attrib :asset_is_local

#asset_tagsHash (readonly)

The tags of the asset being controlled (possibly null).

Returns:

  • (Hash)


245
# File 'lib/chain/transaction.rb', line 245

attrib :asset_tags

#control_programString (readonly)

The control program which must be satisfied to transfer this output.

Returns:

  • (String)


278
# File 'lib/chain/transaction.rb', line 278

attrib :control_program

#idString (readonly)

The id of the output.

Returns:

  • (String)


206
# File 'lib/chain/transaction.rb', line 206

attrib :id

#is_localBoolean (readonly)

A flag indicating if the output is local.

Returns:

  • (Boolean)


289
# File 'lib/chain/transaction.rb', line 289

attrib :is_local

#positionInteger (readonly)

The output’s position in a transaction’s list of outputs.

Returns:

  • (Integer)


225
# File 'lib/chain/transaction.rb', line 225

attrib :position

#purposeString (readonly)

The purpose of the output.

Possible values are “receive” and “change”.

Returns:

  • (String)


220
# File 'lib/chain/transaction.rb', line 220

attrib :purpose

#reference_dataHash (readonly)

User specified, unstructured data embedded within an input (possibly null).

Returns:

  • (Hash)


284
# File 'lib/chain/transaction.rb', line 284

attrib :reference_data

#typeString (readonly)

The type of the output.

Possible values are “control” and “retire”.

Returns:

  • (String)


213
# File 'lib/chain/transaction.rb', line 213

attrib :type