Class: Runar::SDK::TransactionData
- Inherits:
-
Struct
- Object
- Struct
- Runar::SDK::TransactionData
- 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
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#locktime ⇒ Object
Returns the value of attribute locktime.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#txid ⇒ Object
Returns the value of attribute txid.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(txid:, version: 1, inputs: [], outputs: [], locktime: 0, raw: '') ⇒ TransactionData
constructor
A new instance of TransactionData.
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
#inputs ⇒ Object
Returns the value of attribute inputs
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def inputs @inputs end |
#locktime ⇒ Object
Returns the value of attribute locktime
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def locktime @locktime end |
#outputs ⇒ Object
Returns the value of attribute outputs
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def outputs @outputs end |
#raw ⇒ Object
Returns the value of attribute raw
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def raw @raw end |
#txid ⇒ Object
Returns the value of attribute txid
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def txid @txid end |
#version ⇒ Object
Returns the value of attribute version
28 29 30 |
# File 'lib/runar/sdk/types.rb', line 28 def version @version end |