net_version - Manta RPC Method
Get network version on Manta Pacific. Essential for network identification.
Returns the current network ID on Manta Pacific.
Request Parameters
This method accepts no parameters.
Response Body
Network ID as a string
Code Examples
curl -X POST https://api-manta-pacific-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-manta-pacific-archive.n.dwellir.com/YOUR_API_KEY');
const networkId = await provider.send('net_version', []);
console.log('Network ID:', networkId);Related Methods
eth_chainId- Get chain ID