Skip to content
On this page

Utilities

source code

Types

ts
declare function shortenAddress(address: string): string;
declare function displayEther(balance: BigNumber | bigint, fixed?: number): string;
declare function displayChainName(chainId: number): string;
declare function normalizeChainId(chainId: string | number): number;

declare function checkInfuraId(infuraId: string): Promise<any>;
declare function checkChainId(chainId: number): boolean;

source code