Contract Address List
A list of smart contract addresses, each with a chain badge, a verified indicator, a truncated monospace address, a real copy-to-clipboard button, and a link out to the chain's block explorer.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/contract-address-list.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/finance/finance35.tsx instead.
Usage
The file also exports finance35Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Finance35, finance35Demo } from "@/components/blocks/finance/finance35"; export default function Page() { return <Finance35 {...finance35Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Contract addresses" | Section heading. |
| description | string | "Always verify an address against the official explorer link before interacting with it." | Supporting line under the heading. |
| contracts | ContractAddress[] | none | The list of contract addresses to render. |
| className | string | none | Extra classes for the outer section element. |
Types
export interface ContractAddress { id: string; chainName: string; label: string; address: string; verified: boolean; explorerUrl: string; }
Behavior notes
- The copy button genuinely calls navigator.clipboard.writeText with the full (untruncated) address, and shows a real per-row "copied" confirmation for 1.5 seconds via useState.
- The explorer link button is a real anchor tag opening explorerUrl in a new tab, not a placeholder.
- Addresses are truncated for display only, the full address is always what gets copied and linked.
More Finance Blocks
View all →token-price-hero
Token Price Hero
Hero section with a live token price card, market cap, volume, and supply grid.
dao-governance-proposals
DAO Governance Proposals
Governance proposal cards with for/against vote bars, quorum progress, and status badges.
airdrop-claim-card
Airdrop Claim Card
Token airdrop claim card with an eligibility checklist, expiration timer, and claim flow.