@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
15 lines (14 loc) • 418 B
TypeScript
import type { Chain } from '@lifi/sdk';
export type TransactionLinkProps = {
chain?: Chain | number;
} & ({
txHash: string;
txLink?: never;
} | {
txHash?: never;
txLink: string;
});
export declare const useExplorer: () => {
getTransactionLink: ({ txHash, txLink, chain, }: TransactionLinkProps) => string | undefined;
getAddressLink: (address: string, chain?: Chain | number) => string;
};