RPC endpoints may be used to interact with a node directly over HTTP or websockets. Using RPC, you may perform low-level operations like executing ABCI queries, viewing network/consensus state or broadcasting a transaction.

The Binance Chain infrastructure deployment contains so-called "data seed" nodes, which have their RPC ports available for access. To find a seed node that is available, you can use the peers endpoint to get a list of network peers.

Here is an example of a node that is available for RPC access. The following is the output of localhost:27147/status:

JSONRPC requests can be made via websocket. The websocket endpoint is at /websocket, e.g. localhost:27147/websocket. Asynchronous RPC functions like event subscribe and unsubscribe are only available via websockets.

In this example, we will explain how to query account info with abci_query.
1. Generate query key
To get the correct key you need to ：
The query key is : "account:" || address in hex. The first part is in ASCII.

“account:” in ASCII is 6163636F756E756E and the address derived from public key is 743A89F856CB39D25C1BDDAAEC74A381577CA8E2F886. You need to add these to part to get the correct key.

BlockResults gets ABCIResults at a given height.
If no height is provided, it will fetch results for the latest block.
Results are for the height of the block containing the txs.
Thus response.results[5] is the results of executing getBlock(h).Txs[5]

Please note that the returned data contains no confirmation about whether this transaction has been committed or not. You will be able to verify the transaction status on blockchain with the following query:

To tell which events you want, you need to provide a query. query is a
string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.
Query Parameters