Skip to Content
BXN Docs
JSON-RPC API

net

Network ID and peer information.

MethodReturnsExample result
net_versionNetwork ID as a decimal string"488"
net_peerCountNumber of connected peers"0x14"
net_listeningWhether the node accepts peer connectionstrue
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"}