Developer Environment Setup

RPC Endpoints

Network
Chain ID
HTTP RPC
WebSocket RPC
Status

Nexus Mainnet

3946

https://mainnet.rpc.nexus.xyz

wss://mainnet.rpc.nexus.xyz

Live

Nexus Testnet

3945

https://testnet.rpc.nexus.xyz

wss://testnet.rpc.nexus.xyz

Live

Notes:

  • WebSocket connections require an X-Api-Key header on the upgrade handshake. Since browsers cannot set custom headers on WebSocket connections, WSS is currently limited to server-side use (Node.js, Python, etc). Browser dApps should use HTTP polling or a server-side relay.

  • OFAC-restricted jurisdictions are blocked at the edge. See Restricted Jurisdictions.

Request Limits

Limit
Value
Error

Max payload size

2 MB

JSON-RPC -32005

Max batch sub-requests

10

JSON-RPC -32005

Per-IP rate limiting

Active

JSON-RPC error + Retry-After header

Testnet Faucet

Developers can acquire Testnet $NEX here: https://faucet.nexus.xyz

Wallet Setup

Field
Mainnet
Testnet

Network Name

Nexus Mainnet

Nexus Testnet

RPC URL

https://mainnet.rpc.nexus.xyz

https://testnet.rpc.nexus.xyz

Chain ID

3946

3945

Currency Symbol

NEX

NEX

Block Explorer URL

https://explorer.nexus.xyz

https://testnet.explorer.nexus.xyz

To add programmatically:

Hardhat

hardhat.config.ts:

Foundry

foundry.toml:

Remix

  1. Deploy & Run tab → "Injected Provider — MetaMask"

  2. Ensure MetaMask is connected to Nexus (chain ID 3946 or 3945)

Environment verification

Expected: a valid hex block number in the result field.

Expected: "0xf6a" (3946) for mainnet, "0xf69" (3945) for testnet.

Last updated