View Source BitcoinCoreClient.Subscriptions (BitcoinCoreClient v0.1.3)

Keeps track of blocks and transactions ZMQ subscriptions

Link to this section Summary

Functions

Returns a list of pids that subscribed to new bitcoin block messages

Starts the subscriptions server

Starts the subscriptions server

Subscribes the current process to receive bitcoin block messages

Unsubscribes the current process to receive bitcoin block messages

Link to this section Functions

Link to this function

get_blocks_subscriptions()

View Source
@spec get_blocks_subscriptions() :: list()

Returns a list of pids that subscribed to new bitcoin block messages

@spec start_link() ::
  {:ok, pid()} | :ignore | {:error, {:already_started, pid()} | term()}

Starts the subscriptions server

@spec start_link(any()) ::
  {:ok, pid()} | :ignore | {:error, {:already_started, pid()} | term()}

Starts the subscriptions server

@spec subscribe_blocks() :: :ok

Subscribes the current process to receive bitcoin block messages

@spec unsubscribe_blocks() :: :ok

Unsubscribes the current process to receive bitcoin block messages