Docs
Block Explorer Link

Block Explorer Link

Link to an address or transaction to the block explorer of a given network.

Installation

npx buidl-cli@latest add block-explorer-link

Usage

import { BlockExplorerLink } from "@/registry/default/buidl/block-explorer-link"
<BlockExplorerLink data={"0x761d584f1C2d43cBc3F42ECd739701a36dFFAa31"} />
<BlockExplorerLink data={"0x761d584f1C2d43cBc3F42ECd739701a36dFFAa31"} showBlockExplorerName />
<BlockExplorerLink data={"0x761d584f1C2d43cBc3F42ECd739701a36dFFAa31"}>Go to Block Explorer</BlockExplorerLink>
<BlockExplorerLink type="tx" data="0x827069d50d3a5ec0d19327f4b1bb1ecfbe939ef26bc3b6cc2dae5a1574f1e6f8"/>