Skip to content
Docs

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

  1. Confirm the id in Chain id reference (or testnet list)
  2. Pass it in GrayClient.create({ chains }) or call client.chains.add([id])
  3. Enable the chain on the Cloud project plan / Console Networks for data-plane reads
  4. Check capabilities (testnet gaps, NFT/DeFi/swap)
  5. Wire derive UI with pathSlots / paths
  6. 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.
  7. 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");
FieldRequiredDescription
idYes`string` — must NOT collide with `GRAY_CHAIN_IDS`
familyYes`"evm"` (custom chains must be EVM-compatible)
rpcUrlYesYour RPC endpoint. The Gray3 Cloud API is not called for this chain.
evmChainIdYes`number` — EIP-155 id for signing
native / explorerYesDisplay 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 registered

Throws

FieldRequiredDescription
unsupported_capabilityNoNon-EVM custom family; token ops on custom chains
invalid_argumentNoColliding custom id; missing rpcUrl / evmChainId