RPC and ZMQ
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.
Loading lesson visuals...
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.
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 every idea above to open it.
The notification may describe mempool acceptance or a newly observed block. The application must inspect local node state and continue tracking confirmations and reorgs.
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.