Skip to main content

Registry block

Dogecoin Payment Button (link to this section)

Installable shadcn registry block that derives BIP44 Dogecoin payment addresses from an account-level public key, then shows a QR code and copyable address in a dialog. Optionally watches the mempool for an incoming payment.

Preview (link to this section)

Install into a Radix UI project.

The block API and registry URL stay the same. Your project's shadcn base decides whether Base UI or Radix UI primitives are installed for button and dialog.

Preview

Radix UI ยท mocked

Uses a fixed example address and a simulated mempool watch that detects a payment after three seconds. No environment variables required.

Live demo (link to this section)

Resolves a payment address from DOGECOIN_XPUB on the server and watches the mempool through the same-origin SSE proxy.

Live demo

API route

Installation (link to this section)

Add the registry block with the shadcn CLI, or copy the component files manually.

Usage (link to this section)

Prefer resolving the account public key on the server and passing a resolver into the button.

components/donate-button.tsx

Next.js integration (link to this section)

Copy these Next.js files to wire server-side address resolution and the optional OnlyDoge mempool SSE proxy.

IMPORTANT: Keep DOGECOIN_XPUB and ONLYDOGE_API_TOKEN on the server.

app/api/dogecoin/resolve-address/route.ts

Notes (link to this section)

Mempool watching is opt-in. Detection means the payment was seen in the mempool, not that it is confirmed. Use a dedicated account public key at m/44'/3'/0'.

Registry URL used by this deployment: https://dogecoin-payment-button.vercel.app/r/dogecoin-payment-button.json