net
net_version
Returns the current network ID as a string. For PulseChain, this is "369".
Returns the current network ID as a string. For PulseChain, this is "369".
Parameters
| # | Type | Description |
|---|---|---|
| — | — | No parameters required. |
Returns
| Type | Description |
|---|---|
string | The current network ID. "369" for PulseChain mainnet. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "369"
}
TRY IT
Notes
- The network ID is returned as a decimal string, not a hex value.
- PulseChain mainnet network ID and chain ID are both
369.
