UNPKG

@intuweb3/sdk

Version:

INTU SDK - Modern blockchain interaction toolkit

23 lines (22 loc) 897 B
import { ethers } from "ethers"; interface ChainInfo { n: string; c: string; s: string; r: string; d?: number; cs?: string; } export declare const getProviderForChain: (chainId: string | Number) => ethers.providers.JsonRpcProvider; export declare const getChainInfo: (chainId: string | Number) => ChainInfo; export declare const getRpcUrl: (chainId: string | Number) => string; export declare const getSupportedChainIds: () => string[]; export declare const isChainSupported: (chainId: string | Number) => boolean; declare const _default: { getProviderForChain: (chainId: string | Number) => ethers.providers.JsonRpcProvider; getChainInfo: (chainId: string | Number) => ChainInfo; getRpcUrl: (chainId: string | Number) => string; getSupportedChainIds: () => string[]; isChainSupported: (chainId: string | Number) => boolean; }; export default _default;