| name | alchemy-local-dev-loop |
| description | Set up local Web3 development workflow with Alchemy, Hardhat, and testnets.
Use when configuring local blockchain dev, testing with Sepolia faucets,
or setting up hot-reload for smart contract development.
Trigger: "alchemy local dev", "alchemy hardhat", "alchemy testnet setup".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","blockchain","web3","alchemy","development"] |
| compatibility | Designed for Claude Code |
Alchemy Local Dev Loop
Overview
Local Web3 development workflow using Alchemy as the RPC provider with Hardhat for local testing, Sepolia testnet for staging, and hot-reload for rapid iteration.
Prerequisites
- Completed
alchemy-install-auth setup
- Node.js 18+
- Alchemy API key with Sepolia testnet app
Instructions
Step 1: Initialize Hardhat Project with Alchemy
mkdir web3-project && cd web3-project
npm init -y
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox
npm install alchemy-sdk dotenv
npx hardhat init
Step 2: Configure Hardhat with Alchemy RPC
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import 'dotenv/config';
const config: HardhatUserConfig = {
solidity: '0.8.24',
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
blockNumber: 19000000,
},
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY ? [process.env.DEPLOYER_PRIVATE_KEY] : [],
},
},
};
config;