JSON RPC API of Conflux network.
📄️ cfx Namespace
In order for a software application to interact with the Conflux blockchain - either by reading blockchain data or sending transactions to the network - it must connect to an Conflux node.
📄️ txpool Namespace
txpool related RPCs which can enable developer get more info about transaction pool. Which was introduced from conflux-rust v1.1.6.
📄️ pos Namespace
conflux-rust introduces the PoS finality starting from v2.0.0 to speed up the finality of blocks and prevent 51% attacks. PoS finality will introduce an independent PoS chain for PoS consensus and finalizing PoW blocks. Correspondingly, PoS also has its own RPC methods for obtaining data from the PoS chain.
📄️ debug Namespace
📄️ trace Namespace
Through trace RPCs we can know the transaction executive details. To use these RPC Conflux archive node need set two additional config:
📄️ Publish-Subscribe API
The Publish-Subscribe API of Conflux (also called pub-sub) makes it possible to query certain items on an ongoing basis, without polling through the JSON-RPC HTTP interface. You can use this API on top of a TCP or WebSocket connection.