15.1 Reading Blockchain Data Using RPC
A simple example of querying the latest block number using curl is shown below.
curl -X POST https://rpc.frequencychain.org \
-H "Content-Type: application/json" \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params":[],
"id":1
}'This request sends a JSON-RPC call to the FreCx node, asking for the most recent block number. The response will contain the block number in hexadecimal format.
This type of interaction is useful for backend systems, monitoring tools, and lightweight integrations.
Last updated