Skip to content

Supported Networks

The SDK ships with a built-in map of EVM chain IDs to display names. When you pass a chainId, the widget shows the corresponding name in its approval screens.

ChainChain ID
Ethereum1
Goerli (testnet)5
Optimism10
BNB Chain56
Gnosis100
Polygon137
Fantom250
zkSync Era324
Metis1088
Moonbeam1284
Base8453
Arbitrum One42161
Arbitrum Nova42170
Avalanche43114
Linea59144
Scroll534352
Sepolia (testnet)11155111
Mumbai (testnet)80001
Base Goerli (testnet)84531
Arbitrum Goerli (testnet)421613
const auth = new OxGasAuth({
apiKey: 'your-api-key',
chainId: 8453, // → widget shows "Base"
});

For OxGasClient, the same chainId also selects the chain the smart account will be created on, and is included in the bundler/paymaster URLs you pass separately.

If your chain isn’t in the list, pass a display name directly via network:

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

network takes precedence over chainId. If you pass both, network wins for display purposes — but chainId still drives the on-chain signing payload.

For chains not in the built-in registry, the widget falls back to Chain {id} (e.g. Chain 80094) if you supply only chainId. Pass network explicitly to give it a real name.

import { NETWORK_NAMES } from '@0xgasless/core';
const name = NETWORK_NAMES[42161]; // "Arbitrum One"
const name = NETWORK_NAMES[99999]; // undefined

Useful when you want to mirror the SDK’s name lookup in your own UI.

import { VERSION } from '@0xgasless/core';
console.log('Using @0xgasless/core', VERSION);

Handy for bug reports and analytics. The constant tracks the current package version.