Sha256: 2a1872af63d6e4603f0f6a980c66b5f26f639bd517cbd63c0b7caa0e222017ad

Contents?: true

Size: 486 Bytes

Versions: 10

Compression:

Stored size: 486 Bytes

Contents

module Tapyrus
  module Message
    # getblocktxn message.
    # https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki
    class GetBlockTxn < Base
      COMMAND = 'getblocktxn'

      attr_accessor :request

      def initialize(request)
        @request = request
      end

      def self.parse_from_payload(payload)
        self.new(BlockTransactionRequest.parse_from_payload(payload))
      end

      def to_payload
        request.to_payload
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tapyrus-0.3.4 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.3.3 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.3.2 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.3.1 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.3.0 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.2.13 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.2.12 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.2.10 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.2.9 lib/tapyrus/message/get_block_txn.rb
tapyrus-0.2.8 lib/tapyrus/message/get_block_txn.rb