@reservoir0x/relay-sdk
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
45 lines • 1.31 kB
TypeScript
import type { Chain } from 'viem';
import type { paths } from '../types/index.js';
type RelayAPIChain = NonNullable<paths['/chains']['get']['responses']['200']['content']['application/json']['chains']>['0'];
export type ChainVM = 'evm' | 'svm' | 'bvm' | 'tvm' | 'suivm';
export type RelayChain = {
id: number;
name: string;
displayName: string;
httpRpcUrl?: string;
wsRpcUrl?: string;
explorerUrl?: string;
explorerQueryParams?: {
[key: string]: unknown;
} | null;
explorerPaths?: {
transaction?: string;
} | null;
icon?: {
dark?: string;
light?: string;
squaredDark?: string;
squaredLight?: string;
};
currency?: {
id?: string;
symbol?: string;
name?: string;
address?: string;
decimals?: number;
supportsBridging?: boolean;
};
depositEnabled?: boolean;
blockProductionLagging?: boolean;
erc20Currencies?: RelayAPIChain['erc20Currencies'];
featuredTokens?: RelayAPIChain['featuredTokens'];
tags?: RelayAPIChain['tags'];
iconUrl?: string | null;
logoUrl?: string | null;
brandColor?: string | null;
vmType?: ChainVM;
viemChain?: Chain;
baseChainId?: number | null;
};
export {};
//# sourceMappingURL=RelayChain.d.ts.map