net_version
Network: Polygon Amoy · Testnet · Chain ID 80002 (0x13882)
Counts as 1 request. See Request Counting.
Description
Returns the current network ID as a string.
On Polygon Amoy the network ID is normally the decimal chain ID, 80002.
Parameters
None
Request
{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "80002"
}Code Examples
curl -X POST https://polygon-amoy-bor-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}'