⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

system_chain

Returns the human-readable name of the connected chain. Use this handshake to confirm that your application is pointing at Manta Atlantic rather than a local development network.

Parameters

This method does not take parameters.

Returns

FieldTypeDescription
resultstringChain name string. Public Atlantic nodes respond with Manta Parachain.

Request Example

{
"jsonrpc": "2.0",
"method": "system_chain",
"params": [],
"id": 1
}

Response:

{
"jsonrpc": "2.0",
"result": "Manta Parachain",
"id": 1
}

Code Snippet

import { ApiPromise, WsProvider } from '@polkadot/api';

const provider = new WsProvider('wss://api-manta-atlantic-mainnet.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });

console.log('Connected to', (await api.rpc.system.chain()).toString());

Usage Notes

  • Pair with system_properties to double-check token symbol and decimals.
  • Automation scripts can fail fast if the returned string is not Manta Parachain.