Ethereum Wallet-Explorer
The Ethereum Wallet Explorer uses Quicknode's Ethereum endpoint and APIs to query the blockchain for tokens, transactions, and NFTs associated with a given wallet.

Übersicht
The Ethereum Wallet Explorer demonstrates how to use your Quicknode Ethereum endpoint, the Blockbook product, and an endpoint add-on to query tokens, transactions, and NFTs associated with a given wallet.
To run this demo with full functionality, you need the free Token and NFT API v2 bundle endpoint add-on and access to the Blockbook-API.
The demo uses Next.js 14 Projekt, das mit create-next-app.
Erste Schritte
Abhängigkeiten installieren
First, install the dependencies:
npm install
# oder
yarn
# oder
pnpm install
# oder
bun install
Umgebungsvariablen festlegen
Umbenennen .env.example zu .env.local and update with your Quicknode Ethereum Node Endpoint.
ETHEREUM_RPC_URL=https://example.ethereum-mainnet.quiknode.pro/123456/
Starten Sie zunächst den Entwicklungsserver:
npm run dev
# oder
yarn dev
# oder
pnpm dev
# oder
bun dev
Öffnen Sie http://localhost:3000 in Ihrem Browser, um das Ergebnis anzuzeigen.
Nutzung der Dapp
Search for an Ethereum wallet address and press enter. The Dapp will redirect to /wallet/[address] and query the Ethereum blockchain for the wallet's token balances, transactions, and NFTs. Results are rendered in respective cards.
Architektur
src/
├── app/
│ └── api/
│ └── wallet/
├── components/
├── explorer/
└── header/
-
api- Contains the API routes for the Ethereum RPC calls. These can be accessed from the client via/api/wallet/[method]?walletAddress=[address]. These GET requests use theEtherslibrary to interact with Ethereum and parse data, theToken and NFT API v2 bundleendpoint add-on to retrieve NFT and ERC-20 token information, and theBlockbook-APIto retrieve transaction history for any Ethereum address. -
components- Contains the React components for the dapp.- Die
explorercomponent contains client-side components that call the API routes and render the results. - Die
Kopfzeilecomponent contains the search bar for the dapp.
- Die
Auf Vercel bereitstellen
Vorschau


Next.js-Dokumentation
Wenn Sie mehr über Next.js erfahren möchten, sehen Sie sich die folgenden Ressourcen an:
- Next.js-Dokumentation – Erfahren Sie mehr über die Funktionen und die API von Next.js.
- Next.js lernen – ein interaktives Next.js-Tutorial.
Schaut euch doch mal das Next.js-GitHub-Repository an – wir freuen uns über euer Feedback und eure Beiträge!
- Das Repository forken
- Erstelle einen Feature-Branch:git checkout -b feature/amazing-feature
- Speichere deine Änderungen:git commit -m "Tolle Funktion hinzufügen"
- Deinen Branch pushen:git push origin feature/amazing-feature
- Erstelle einen Pull Request.
