JSON-RPC API
net
Network ID and peer information.
| Method | Returns | Example result |
|---|---|---|
net_version | Network ID as a decimal string | "488" |
net_peerCount | Number of connected peers | "0x14" |
net_listening | Whether the node accepts peer connections | true |
curl -s -X POST https://rpc.blackfort.network/mainnet/rpc \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}'{"jsonrpc":"2.0","id":1,"result":"488"}