@metamask/etherscan-link
Version:
A library for generating etherscan links.
14 lines (13 loc) • 570 B
TypeScript
interface TransactionInterface {
hash: string;
chainId: string;
metamaskNetworkId: string;
}
interface RpcPrefsInterface {
blockExplorerUrl?: string;
}
export declare function createCustomExplorerLink(hash: string, customNetworkUrl: string): string;
export declare function createExplorerLink(hash: string, network: string): string;
export declare function createExplorerLinkForChain(hash: string, chainId: string): string;
export declare function getBlockExplorerLink(transaction: TransactionInterface, rpcPrefs?: RpcPrefsInterface): string;
export {};