/** Network identifiers accepted by the ChainGate RPC proxy. */ export type RpcNetwork = 'bitcoin' | 'bitcointestnet' | 'bitcoincash' | 'litecoin' | 'dogecoin' | 'ethereum' | 'sonic' | 'polygon' | 'arbitrum' | 'avalanche' | 'bnb' | 'base'; /** * Provides pre-built JSON-RPC endpoint URLs for every network supported by the * ChainGate RPC proxy. * * Each property returns a fully-qualified URL with the API key appended, ready * to be used with any JSON-RPC client (ethers, viem, bitcoinjs, etc.) or with * {@link ChainGate.networks.evmRpc | `cg.networks.evmRpc()`}. * * @example * ```ts * const cg = new ChainGate({ apiKey: 'your-key' }); * * // Use directly * console.log(cg.rpcUrls.ethereum); * // → "https://api.chaingate.dev/rpc/ethereum?api_key=your-key" * * // Combine with evmRpc connector * const polygon = cg.networks.evmRpc({ * rpcUrl: cg.rpcUrls.polygon, * chainId: 137, * name: 'Polygon', * symbol: 'POL', * }); * ``` */ export declare class RpcUrls { readonly bitcoin: string; readonly bitcoinTestnet: string; readonly bitcoincash: string; readonly litecoin: string; readonly dogecoin: string; readonly ethereum: string; readonly sonic: string; readonly polygon: string; readonly arbitrum: string; readonly avalanche: string; readonly bnb: string; readonly base: string; /** @internal */ constructor(apiKey: string); /** * Returns the RPC URL for any supported network by its identifier. * * @example * ```ts * const url = cg.rpcUrls.get('polygon'); * // → "https://api.chaingate.dev/rpc/polygon?api_key=your-key" * ``` */ get(network: RpcNetwork): string; /** @internal */ private get apiKey(); } /** @internal */ export declare function buildRpcUrl(network: RpcNetwork, apiKey: string): string;