Supported chains
Adding a chain to your app
Enable catalog chains or register custom EVM networks end-to-end.
Overview
Use this checklist when enabling a Gray3 catalog chain—or registering a custom EVM network—in a wallet app.
Gray3 catalog chain
- Confirm the id in Chain id reference (or testnet list)
- Pass it in
GrayClient.create({ chains })or callclient.chains.add([id]) - Enable the chain on the Cloud project plan / Console Networks for data-plane reads
- Check capabilities (testnet gaps, NFT/DeFi/swap)
- Wire derive UI with
pathSlots/ paths - For sends, prepare with the Cloud API and sign with signPreparedTransaction. This does not apply to Monero and UTXO chains, which the client cannot sign this way.
- For Monero: ensure allowlist includes
monero; use sync + transfers APIs
Custom EVM network
js
const client = await GrayClient.create({
chains: ["ethereum", "base"],
customChains: [
{
id: "my-sonic-fork",
name: "Sonic Fork",
family: "evm",
native: { symbol: "S", name: "Sonic", decimals: 18 },
explorer: { url: "https://sonic-fork.example.com" },
rpcUrl: "https://rpc.sonic-fork.example.com",
evmChainId: 14601,
isTestnet: true,
mainnetId: "sonic",
},
],
});
client.chains.addCustom({ id: "another-chain", /* … */ });
client.chains.removeCustom("another-chain");| Field | Required | Description |
|---|---|---|
| id | Yes | `string` — must NOT collide with `GRAY_CHAIN_IDS` |
| family | Yes | `"evm"` (custom chains must be EVM-compatible) |
| rpcUrl | Yes | Your RPC endpoint. The Gray3 Cloud API is not called for this chain. |
| evmChainId | Yes | `number` — EIP-155 id for signing |
| native / explorer | Yes | Display metadata |
Verify
js
client.chains.has("my-sonic-fork");
client.chains.isEnabled("base");
client.chains.isCustom("my-sonic-fork");
account.address("ethereum"); // catalog
// Custom ids participate in allowlist like catalog chain IDs once registeredThrows
| Field | Required | Description |
|---|---|---|
| unsupported_capability | No | Non-EVM custom family; token ops on custom chains |
| invalid_argument | No | Colliding custom id; missing rpcUrl / evmChainId |