you_networkId

描述:获取客户端节点的网络编号.

parameter

return

数据类型 备注
String 当前网络编号

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "you_networkId", "params": []}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x2"
}