Reviewed Aug 2026
DE
BA-09 · LESSON 06

RPC and ZMQ

KEY DEFINITIONS

Terms used in this lesson

RPC
Remote procedure call: the command interface applications use to ask a Bitcoin node to perform operations or return state.
ZMQ
ZeroMQ: a messaging interface Bitcoin Core can use to notify applications about new blocks and transactions.

RPC controls a node while event interfaces support applications that need chain and mempool updates.

45 min Difficulty 3/5 Not started

Loading lesson visuals...

01

Learn the idea

RPC, or remote procedure call, is Bitcoin Core's authenticated command interface for requesting state or actions such as wallet transaction creation. ZMQ, or ZeroMQ, is a publish-subscribe notification interface for events such as new block or transaction hashes. RPC answers a request; ZMQ pushes a signal, and applications must query or validate details as needed.

GUIDED EXPLANATION1/5 ideas inspected
1

Authenticate and scope RPC

Applications connect to a controlled local or protected endpoint with least-privilege credentials and avoid exposing administrative methods to untrusted networks.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionReceiving a ZMQ transaction notification proves the transaction is confirmed and final.

The notification may describe mempool acceptance or a newly observed block. The application must inspect local node state and continue tracking confirmations and reorgs.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.