Sha256: de79e7ac4eccdafc15125baea74c93f4edee652a6c81e2eb46539409409b02d5
Contents?: true
Size: 504 Bytes
Versions: 8
Compression:
Stored size: 504 Bytes
Contents
module Tapyrus module Message # tx message # https://bitcoin.org/en/developer-reference#tx class Tx < Base COMMAND = 'tx' attr_accessor :tx attr_accessor :use_segwit def initialize(tx, use_segwit = false) @tx = tx @use_segwit = use_segwit end def self.parse_from_payload(payload) tx = Tapyrus::Tx.parse_from_payload(payload) new(tx) end def to_payload tx.to_payload end end end end
Version data entries
8 entries across 8 versions & 1 rubygems