Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

net_version

On Telcoin Network this is the chain id as a decimal string: "2017" on adiri. It is the same number eth_chainId returns in hex (0x7e1).

Parameters

None

Returns

String - The chain id in decimal.

Example

Request

curl https://rpc.adiri.tel \
 -X POST \
 -H "Content-Type: application/json" \
 --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}'

Result

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "2017"
}

source