A small React web app that connects to an Algorand wallet and sends a payment. It was made during an Algorand workshop with the AlgoKit starter template, and it's a good base for building a dApp frontend on Algorand.
- Connect a wallet: Pera, Defly, or the local KMD wallet (via
@txnlab/use-wallet) - Show your account: address and network
- Send a transaction: a simple ALGO payment to any address
- Works with LocalNet, TestNet, and MainNet
React, TypeScript, Vite, AlgoKit Utils, algosdk, use-wallet, notistack
You need Node.js 18+, AlgoKit CLI 2+, and Docker if you want a local network.
-
Install dependencies:
algokit project bootstrap all
-
Create your environment file from the template:
cp .env.template .env
The defaults point to LocalNet. For TestNet, change the
VITE_ALGOD_*andVITE_INDEXER_*values to a public TestNet node such as AlgoNode. -
(LocalNet only) Start a local Algorand network:
algokit localnet start
-
Start the app:
npm run dev
| Path | What it is |
|---|---|
src/Home.tsx |
Main page |
src/components/ConnectWallet.tsx |
Wallet picker |
src/components/Account.tsx |
Shows the connected account |
src/components/Transact.tsx |
Sends a payment |
src/utils/network/ |
Reads network settings from .env |
session1/ |
The full AlgoKit workspace from the workshop session |
Released under the MIT License.