Class: Sibit::TxBuilder::Input
- Inherits:
-
Object
- Object
- Sibit::TxBuilder::Input
- 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
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#prev_out_hash ⇒ Object
readonly
Returns the value of attribute prev_out_hash.
-
#prev_out_idx ⇒ Object
readonly
Returns the value of attribute prev_out_idx.
-
#script ⇒ Object
readonly
Returns the value of attribute script.
Instance Method Summary collapse
- #prev_out(hash) ⇒ Object
- #prev_out_index(idx) ⇒ Object
- #prev_out_script=(scr) ⇒ Object
- #prev_out_value(val) ⇒ Object
- #signature_key(key) ⇒ Object
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
74 75 76 |
# File 'lib/sibit/txbuilder.rb', line 74 def amount @amount end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
74 75 76 |
# File 'lib/sibit/txbuilder.rb', line 74 def key @key end |
#prev_out_hash ⇒ Object (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_idx ⇒ Object (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 |
#script ⇒ Object (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 |