Class: Chain::Transaction

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

Defined Under Namespace

Classes: Builder, ClientModule, Input, Output, Query, SubmitResponse, Template

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

#block_heightInteger (readonly)

Height of the block containing a transaction.

Returns:

  • (Integer)


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

attrib :block_height

#block_idString (readonly)

Unique identifier, or block hash, of the block containing a transaction.

Returns:

  • (String)


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

attrib :block_id

#idString (readonly)

Unique transaction identifier.

Returns:

  • (String)


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

attrib :id

#inputsArray<Input> (readonly)

List of specified inputs for a transaction.

Returns:



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

attrib(:inputs) { |raw| raw.map { |v| Input.new(v) } }

#is_localBoolean (readonly)

A flag indicating one or more inputs or outputs are local.

Returns:

  • (Boolean)


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

attrib :is_local

#outputsArray<Output> (readonly)

List of specified outputs for a transaction.

Returns:



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

attrib(:outputs) { |raw| raw.map { |v| Output.new(v) } }

#positionInteger (readonly)

Position of a transaction within the block.

Returns:

  • (Integer)


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

attrib :position

#reference_dataHash (readonly)

User specified, unstructured data embedded within a transaction.

Returns:

  • (Hash)


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

attrib :reference_data

#timestampTime (readonly)

Time of transaction.

Returns:

  • (Time)


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

attrib :timestamp, rfc3339_time: true