Skip to main content

RPC Endpoints

Pocket uses a software called Tendermint for data replication and consensus. More specificity, Pocket uses the Go version of Tendermint Core.

Tendermint uses an RPC interface to communicate with the nodes. The RPC interface is used to query nodes for information. So for testing purposes, we can use the Tendermint RPC interface to verify a node is correctly configured and running.

Here is a list of commands that can be used to test the RPC interface.

  • curl http://127.0.0.1:26657/health - This will return the current health information.
  • curl http://127.0.0.1:26657/status - This will return the current status information.
  • curl http://127.0.0.1:26657/net_info - This will return the current network information.
  • curl http://127.0.0.1:26657/blockchain - This will return the current blockchain information.

These are all informational commands and you should see a response from each command. These commands are all run on the terminal of the node (localhost). To test on the public network you'll need to connect to the Tendermint TCP port.

Reference