[#CZMQNotificationInterface-Create]
= xref:CZMQNotificationInterface.adoc[CZMQNotificationInterface]::Create
:relfileprefix: ../
:mrdocs:

Create the ZMQ notification interface from the configured endpoints&period;

== Synopsis

Declared in `&lt;zmq&sol;zmqnotificationinterface&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;CZMQNotificationInterface&gt;
Create(std::function&lt;bool(std::vector&lt;std::byte&gt;&, xref:CBlockIndex.adoc[CBlockIndex] const&)&gt; get&lowbar;block&lowbar;by&lowbar;index);
----

== Return Value

The new interface, or nullptr if no notifiers are configured&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *get&lowbar;block&lowbar;by&lowbar;index*
| Callback that reads a serialized block for a given index&period;
|===


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