Skip to main content
Glama
chains.ts408 B
import { base, baseSepolia } from 'viem/chains'; export const chainIdToChain = (chainId: string | number) => { if (String(chainId) === String(baseSepolia.id)) { return baseSepolia; } if (String(chainId) === String(base.id)) { return base; } return null; }; export const chainIdToCdpNetworkId: Record<number, string> = { [baseSepolia.id]: 'base-sepolia', [base.id]: 'base-mainnet', };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bioanywhere/mcp-base-mcp2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server