Class: Runar::SDK::TransactionData

Inherits:
Struct
  • Object
show all
Defined in:
lib/runar/sdk/types.rb

Overview

A parsed Bitcoin transaction (data shape for get_transaction return value).

Named TransactionData to distinguish from any lower-level transaction class that may be used in the signing layer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(txid:, version: 1, inputs: [], outputs: [], locktime: 0, raw: '') ⇒ TransactionData

Returns a new instance of TransactionData.



29
30
31
# File 'lib/runar/sdk/types.rb', line 29

def initialize(txid:, version: 1, inputs: [], outputs: [], locktime: 0, raw: '')
  super
end

Instance Attribute Details

#inputsObject

Returns the value of attribute inputs

Returns:

  • (Object)

    the current value of inputs



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def inputs
  @inputs
end

#locktimeObject

Returns the value of attribute locktime

Returns:

  • (Object)

    the current value of locktime



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def locktime
  @locktime
end

#outputsObject

Returns the value of attribute outputs

Returns:

  • (Object)

    the current value of outputs



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def outputs
  @outputs
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def raw
  @raw
end

#txidObject

Returns the value of attribute txid

Returns:

  • (Object)

    the current value of txid



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def txid
  @txid
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



28
29
30
# File 'lib/runar/sdk/types.rb', line 28

def version
  @version
end