class Tapyrus::Message::FilterAdd

filteradd message bitcoin.org/en/developer-reference#filteradd

Constants

COMMAND

Attributes

element[RW]

element must be sent in the byte order they would use when appearing in a raw transaction;

Public Class Methods

new(element) click to toggle source
# File lib/tapyrus/message/filter_add.rb, line 11
def initialize(element)
  @element = element
end
parse_from_payload(payload) click to toggle source
# File lib/tapyrus/message/filter_add.rb, line 15
def self.parse_from_payload(payload)
  new(Tapyrus.unpack_var_string(payload).first.bth)
end

Public Instance Methods

to_payload() click to toggle source
# File lib/tapyrus/message/filter_add.rb, line 19
def to_payload
  Tapyrus.pack_var_string(element.htb)
end