Skip to content

Supported Networks

The SDK includes a built-in map of EVM chain IDs to human-readable network names. When you pass a chainId, the widget displays the correct network name in its approval screens.

ChainChain ID
Ethereum1
BNB Chain56
Polygon137
Moonbeam1284
Metis1088
Base8453
Avalanche43114
Avalanche43113
Sepolia (testnet)11155111
const auth = new OxGasAuth({
apiKey: 'your-api-key',
chainId: 8453, // Resolved to "Base" automatically
});

If your chain is not in the list, pass the name directly using the network option:

const auth = new OxGasAuth({
apiKey: 'your-api-key',
network: 'Blast', // Displayed as-is in the widget
});

The network option takes precedence over chainId. If you pass both, network wins.

You can import the NETWORK_NAMES map if you need it in your own code:

import { NETWORK_NAMES } from '0xgas-auth';
const name = NETWORK_NAMES[42161]; // "Arbitrum One"