Docs
Supported ChainsManta PacificJSON-RPC APINetwork Methods

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

Request

This method accepts no parameters.

Response Body

Response
resultString

Network ID as a string

Code Examples

Bash
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
  }'
JavaScript
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);

On this page