@knine-sdk/fetch
Version:
Fetchers for Knine projects.
9 lines (8 loc) • 391 B
TypeScript
import { CHAINS } from '@knine-sdk/constants';
export declare const getInfuraRPCUrl: (chainId: CHAINS, apiKey: string) => string;
export declare const getAlchemyRPCUrl: (chainId: CHAINS, apiKey: string) => string;
export interface RPCProvidersKeys {
infura?: string;
alchemy?: string;
}
export declare const getRPCUrls: (chainId: CHAINS, keys: RPCProvidersKeys) => string[];