0xtrails
Version:
SDK for Trails
26 lines • 1.35 kB
TypeScript
import { Chain } from 'viem';
import { QuoteProvider } from './intents.js';
export declare function getAllChains(): Chain[];
export declare const getRpcUrl: (chainId: number, sequenceProjectAccessKey?: string) => string | null;
export declare const supportedSequenceChains: Record<number, Chain>;
export declare const supportedSequenceTestnetChains: Record<number, Chain>;
export declare const mainnetChainsToTestnetChains: Record<number, Chain>;
export declare function getChainInfo(chainId?: number, options?: {
usePublicRpc?: boolean;
}): Chain | null;
export declare function getTestnetChainInfo(mainnetChain: Chain | number): Chain | null;
export declare function getSupportedSequenceChains(): Promise<Chain[]>;
export declare function getSupportedSequenceTestnetChains(): Promise<Chain[]>;
export declare function getAllQuoteProviderChains(): Promise<Chain[]>;
export declare function getSupportedChains({ quoteProvider, }?: {
quoteProvider?: QuoteProvider | string;
}): Promise<Chain[]>;
export declare function useSupportedChains({ quoteProvider, }?: {
quoteProvider?: QuoteProvider | string;
}): {
supportedChains: Chain[];
isLoadingChains: boolean;
};
export declare function getIsTestnetChainId(chainId: number): boolean;
export declare function getChainColor(chainId: number): string;
//# sourceMappingURL=chains.d.ts.map