UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

13 lines (12 loc) 597 B
import type { Connector } from '../wagmi/hooks'; export declare const POLYGON_CHAIN_ID = 137; /** * Checks if the user's wallet RPC for Polygon is responsive by sending an eth_blockNumber call. * We use eth_blockNumber instead of eth_chainId because eth_chainId can be intercepted * by the wallet itself and may not actually hit the RPC. * * The default polygon-rpc.com stopped working in Feb 2026. * * @returns true if the RPC appears to be down/unreachable */ export declare function isPolygonRpcDown(fromChainId: string | undefined, connector: Connector | undefined): Promise<boolean>;