class Bitcoin::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/bitcoin/message/filter_add.rb, line 13
def initialize(element)
  @element = element
end
parse_from_payload(payload) click to toggle source
# File lib/bitcoin/message/filter_add.rb, line 17
def self.parse_from_payload(payload)
  new(Bitcoin.unpack_var_string(payload).first.bth)
end

Public Instance Methods

to_payload() click to toggle source
# File lib/bitcoin/message/filter_add.rb, line 21
def to_payload
  Bitcoin.pack_var_string(element.htb)
end