Class: Runar::SDK::TxInput

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

Overview

A transaction input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(txid:, output_index:, script:, sequence: 0xFFFFFFFF) ⇒ TxInput

Returns a new instance of TxInput.



16
17
18
# File 'lib/runar/sdk/types.rb', line 16

def initialize(txid:, output_index:, script:, sequence: 0xFFFFFFFF)
  super
end

Instance Attribute Details

#output_indexObject

Returns the value of attribute output_index

Returns:

  • (Object)

    the current value of output_index



15
16
17
# File 'lib/runar/sdk/types.rb', line 15

def output_index
  @output_index
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



15
16
17
# File 'lib/runar/sdk/types.rb', line 15

def script
  @script
end

#sequenceObject

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



15
16
17
# File 'lib/runar/sdk/types.rb', line 15

def sequence
  @sequence
end

#txidObject

Returns the value of attribute txid

Returns:

  • (Object)

    the current value of txid



15
16
17
# File 'lib/runar/sdk/types.rb', line 15

def txid
  @txid
end