Class: Sibit::TxBuilder::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/sibit/txbuilder.rb

Overview

Input builder for collecting input parameters.

Author

Yegor Bugayenko (yegor256@gmail.com)

Copyright

Copyright (c) 2019-2026 Yegor Bugayenko

License

MIT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



74
75
76
# File 'lib/sibit/txbuilder.rb', line 74

def amount
  @amount
end

#keyObject (readonly)

Returns the value of attribute key.



74
75
76
# File 'lib/sibit/txbuilder.rb', line 74

def key
  @key
end

#prev_out_hashObject (readonly)

Returns the value of attribute prev_out_hash.



74
75
76
# File 'lib/sibit/txbuilder.rb', line 74

def prev_out_hash
  @prev_out_hash
end

#prev_out_idxObject (readonly)

Returns the value of attribute prev_out_idx.



74
75
76
# File 'lib/sibit/txbuilder.rb', line 74

def prev_out_idx
  @prev_out_idx
end

#scriptObject (readonly)

Returns the value of attribute script.



74
75
76
# File 'lib/sibit/txbuilder.rb', line 74

def script
  @script
end

Instance Method Details

#prev_out(hash) ⇒ Object



76
77
78
# File 'lib/sibit/txbuilder.rb', line 76

def prev_out(hash)
  @prev_out_hash = hash
end

#prev_out_index(idx) ⇒ Object



80
81
82
# File 'lib/sibit/txbuilder.rb', line 80

def prev_out_index(idx)
  @prev_out_idx = idx
end

#prev_out_script=(scr) ⇒ Object



84
85
86
# File 'lib/sibit/txbuilder.rb', line 84

def prev_out_script=(scr)
  @script = scr
end

#prev_out_value(val) ⇒ Object



88
89
90
# File 'lib/sibit/txbuilder.rb', line 88

def prev_out_value(val)
  @amount = val
end

#signature_key(key) ⇒ Object



92
93
94
# File 'lib/sibit/txbuilder.rb', line 92

def signature_key(key)
  @key = key
end