explorerTxHash
Formats a safe explorer URL that points to a transaction hash.
Usage
import { Beaut } from "@0xhq/beaut";
const formatted = Beaut.explorerTxHash(
"https://etherscan.io",
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
);
Output: "https://etherscan.io/tx/0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"Types
Parameters
import { ExplorerTxHashParameters } from "@0xhq/beaut";Return Type
import { ExplorerTxHashReturnType } from "@0xhq/beaut";