Class: Bitcoin::Message::GetBlockTxn
- Defined in:
- lib/bitcoin/message/get_block_txn.rb
Overview
getblocktxn message. github.com/bitcoin/bips/blob/master/bip-0152.mediawiki
Constant Summary collapse
- COMMAND =
'getblocktxn'
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request) ⇒ GetBlockTxn
constructor
A new instance of GetBlockTxn.
- #to_payload ⇒ Object
Methods inherited from Base
Methods included from Util
#byte_to_bit, #calc_checksum, #decode_base58_address, #double_sha256, #encode_base58_address, #hash160, #hkdf_sha256, #hmac_sha256, #pack_boolean, #pack_var_int, #pack_var_string, #padding_zero, #sha256, #tagged_hash, #unpack_boolean, #unpack_var_int, #unpack_var_int_from_io, #unpack_var_string, #valid_address?
Methods included from HexConverter
Constructor Details
#initialize(request) ⇒ GetBlockTxn
Returns a new instance of GetBlockTxn.
12 13 14 |
# File 'lib/bitcoin/message/get_block_txn.rb', line 12 def initialize(request) @request = request end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
10 11 12 |
# File 'lib/bitcoin/message/get_block_txn.rb', line 10 def request @request end |
Class Method Details
.parse_from_payload(payload) ⇒ Object
16 17 18 |
# File 'lib/bitcoin/message/get_block_txn.rb', line 16 def self.parse_from_payload(payload) self.new(BlockTransactionRequest.parse_from_payload(payload)) end |
Instance Method Details
#to_payload ⇒ Object
20 21 22 |
# File 'lib/bitcoin/message/get_block_txn.rb', line 20 def to_payload request.to_payload end |