Class: Chain::Transaction::Input

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 transferring the asset (possibly null if the input is an issuance or an unspent output is specified).

Returns:

  • (String)


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

attrib :account_alias

#account_idString (readonly)

The id of the account transferring the asset (possibly null if the input is an issuance or an unspent output is specified).

Returns:

  • (String)


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

attrib :account_id

#account_tagsString (readonly)

The tags associated with the account (possibly null).

Returns:

  • (String)


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

attrib :account_tags

#amountInteger (readonly)

The number of units of the asset being issued or spent.

Returns:

  • (Integer)


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

attrib :amount

#asset_aliasString (readonly)

The alias of the asset being issued or spent (possibly null).

Returns:

  • (String)


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

attrib :asset_alias

#asset_definitionHash (readonly)

The definition of the asset being issued or spent (possibly null).

Returns:

  • (Hash)


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

attrib :asset_definition

#asset_idString (readonly)

The id of the asset being issued or spent.

Returns:

  • (String)


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

attrib :asset_id

#asset_is_localBoolean (readonly)

A flag indicating whether the asset being issued or spent is local.

Returns:

  • (Boolean)


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

attrib :asset_is_local

#asset_tagsHash (readonly)

The tags of the asset being issued or spent (possibly null).

Returns:

  • (Hash)


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

attrib :asset_tags

#is_localBoolean (readonly)

A flag indicating if the input is local.

Returns:

  • (Boolean)


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

attrib :is_local

#issuance_programString (readonly)

A program specifying a predicate for issuing an asset (possibly null if input is not an issuance).

Returns:

  • (String)


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

attrib :issuance_program

#reference_dataHash (readonly)

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

Returns:

  • (Hash)


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

attrib :reference_data

#spent_output_idString (readonly)

The id of the output consumed by this input. ID is nil if this is an issuance input.

Returns:

  • (String)


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

attrib :spent_output_id

#typeString (readonly)

The type of the input.

Possible values are “issue”, “spend”.

Returns:

  • (String)


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

attrib :type