net_version

Returns the network ID that the client is connected to.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Response

The network ID as a string. Common IDs are "1" for mainnet, "3" for Ropsten, etc.