[#BlockFilter]
= BlockFilter
:mrdocs:

Complete block filter struct as defined in BIP 157&period; Serialization matches payload of &quot;cfilter&quot; messages&period;

== Synopsis

Declared in `&lt;blockfilter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BlockFilter;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BlockFilter/2constructor-02e.adoc[`BlockFilter`]         [.small]#[constructor]#
| Constructors
| xref:BlockFilter/ComputeHeader.adoc[`ComputeHeader`] 
| Compute the filter header given the previous one&period;
| xref:BlockFilter/GetBlockHash.adoc[`GetBlockHash`] 
| Returns the hash of the block this filter is for&period;
| xref:BlockFilter/GetEncodedFilter.adoc[`GetEncodedFilter`] 
| Returns the serialized contents of the underlying filter&period;
| xref:BlockFilter/GetFilter.adoc[`GetFilter`] 
| Returns the underlying GCS filter&period;
| xref:BlockFilter/GetFilterType.adoc[`GetFilterType`] 
| Returns the type of this filter&period;
| xref:BlockFilter/GetHash.adoc[`GetHash`] 
| Compute the filter hash&period;
| xref:BlockFilter/Serialize.adoc[`Serialize`] 
| Serialize the filter to a stream&period;
| xref:BlockFilter/Unserialize.adoc[`Unserialize`] 
| Deserialize the filter from a stream&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
