Class: BSV::Transaction::Beef::RawTxEntry
- Defined in:
- lib/bsv/transaction/beef.rb
Overview
A BEEF entry containing a raw transaction without a merkle proof.
Instance Attribute Summary collapse
-
#transaction ⇒ Transaction
readonly
The transaction.
Instance Method Summary collapse
-
#format_flag ⇒ Integer
FORMAT_RAW_TX wire-protocol flag.
-
#initialize(transaction:) ⇒ RawTxEntry
constructor
A new instance of RawTxEntry.
-
#wtxid ⇒ String
Wire-order wtxid delegated to the transaction.
Methods inherited from BeefTx
Constructor Details
#initialize(transaction:) ⇒ RawTxEntry
Returns a new instance of RawTxEntry.
80 81 82 83 84 85 |
# File 'lib/bsv/transaction/beef.rb', line 80 def initialize(transaction:) raise ArgumentError, 'RawTxEntry requires a transaction' if transaction.nil? super() @transaction = transaction end |
Instance Attribute Details
#transaction ⇒ Transaction (readonly)
Returns the transaction.
76 77 78 |
# File 'lib/bsv/transaction/beef.rb', line 76 def transaction @transaction end |
Instance Method Details
#format_flag ⇒ Integer
Returns FORMAT_RAW_TX wire-protocol flag.
93 94 95 |
# File 'lib/bsv/transaction/beef.rb', line 93 def format_flag FORMAT_RAW_TX end |
#wtxid ⇒ String
Returns wire-order wtxid delegated to the transaction.
88 89 90 |
# File 'lib/bsv/transaction/beef.rb', line 88 def wtxid @transaction.wtxid end |