Tree News

Hedera Community · 2026-12-01 21:34 UTC

From Fresh Laptop to a Running Hedera App with Scaffold HBAR You can go from a fresh laptop to a running Hedera app starting with one command: npx scaffold-hbar@latest. In a Hashgraph Hustlers livestream, Jake Hall ran it live, picked a template, and then had Claude Code build a working proof of concept on top of it. Here is what the CLI sets up for you and how the build went. 🔗 Key Links 📺 Watch the replay → Fresh Laptop to a Running Hedera App with Scaffold HBAR ( 🛠️ Browse templates and copy a command → Scaffold HBAR ( 📄 Docs → Hedera documentation ( 📌 TL;DR npx scaffold-hbar@latest creates a monorepo with a Next.js frontend and Solidity contracts (Foundry or Hardhat). Projects target Hedera testnet or mainnet, and Hedera Skills for your AI coding agent install by default. Built-in templates include the Hedera Docs MCP server in .mcp.json. Scaffold HBAR is a fork of the open-source Scaffold-ETH, with Hedera-specific additions. On stream, Claude Code built a tokenized GPU compute proof of concept on the blank starter, on a local Foundry chain. Get Started To follow along, you need three tools installed. Then it is one command. Install Node.js 22. Install Git and configure user.name and user.email. Install Yarn. Run npx scaffold-hbar@latest and answer the prompts. When Jake ran it, npx first asked to install the package, then the CLI asked for a project name, a template, whether to install Hedera Skills, a Solidity framework (Foundry or Hardhat), the network and the package manager. He chose the blank starter, Foundry, Hedera testnet and Yarn. The CLI installs dependencies in parallel and finishes by printing the next steps. On macOS and Linux, the CLI installs Foundry when forge is missing or older than 1.4.0. On Windows, install Foundry first. Hardhat comes with the project dependencies. Key takeaway: Install Node.js 22, Git and Yarn, then run npx scaffold-hbar@latest and follow the printed next steps. What the CLI Sets Up Jake described Scaffold HBAR as a one-command CLI that gives you a template ready for AI agents to build on Hedera. It is a fork of Scaffold-ETH, an open-source Ethereum project, with Hedera-specific additions, and Jake gave a shout-out to that team for the foundation. On the app side, the Next.js frontend comes with wallet connection, React hooks for reading and writing contracts and watching contract events, and a Scaffold HBAR UI component library. The blank starter supports Hedera wallets like HashPack as well as EVM wallets like MetaMask. On the agent side, the project includes: Hedera Skills, which give coding agents context that may not be in their training data, such as newer Hedera features. The Hedera Docs MCP server in .mcp.json, so agents like Claude Code or OpenAI Codex can search up-to-date Hedera documentation. CLAUDE.md files plus templates and commands that give the agent project context. The Foundry setup also includes yarn foundry:chain, which starts a local chain for quick prototyping, and yarn foundry:deploy --network localhost, which deploys contracts to it. The app also has a Debug Contracts view that lists every deployed contract and lets you call its functions. Key takeaway: You get a working Next.js and Solidity scaffold plus the agent context (Hedera Skills, Docs MCP server) your coding agent needs. The Templates Each starter template gives you a different set of Hedera tools. Jake walked through the options in the CLI: Blank starter: a clean slate with wallet connection and a Foundry or Hardhat setup. Bridging. Cross-chain dollar-cost average. Hedera-native: uses the Hedera SDKs directly, with no Solidity. Jake recommends this route if you are new to Hedera or blockchain, since you can create tokens and transfers in languages like JavaScript, Python or Java. Oracles: real-time data from Chainlink data feeds, Pyth or Supra. On-chain cron job, using the Hedera Schedule Service. Tokenized subscriptions. x402 pay per use: uses the x402 payment protocol for pay-per-access storage. He also mentioned new finance templates. They cover delivery versus payment, issuing an Asset Tokenization Studio bond with coupons through the Hedera Schedule Service, regulated tokens, and using Hedera Consensus Service topics for audit trails. Key takeaway: Pick the blank starter for a clean slate, or start from a template that already wires up a specific Hedera service. How Jake Built the Demo with Claude Code Jake started from the blank starter and used Claude Code in the terminal, with several agents running in parallel. While one agent answered a setup question about his existing Foundry account, a research agent looked into GPU compute financing. That research led him to a demo idea: represent GPU lots as tokens, as a proof of concept. He asked Claude Code to agree on scope first, through a short round of questions. Then it spun up two planning sub-agents in parallel, one for the Solidity contracts and one for the Next.js page. Once he approved the plans, build agents wrote the code and an orchestrator passed messages between them, for example telling the UI agent when the contracts were deployed. An independent reviewer agent then checked that the frontend and contracts were in sync. Jake pointed out that sub-agents start with fresh context. That kept his main session at about 13% of its context window, which he said keeps costs lower and reduces mistakes from context pollution. The resulting proof of concept ran on a local Foundry chain with test tokens and fake local HBAR. It included a GPU-lot NFT, senior and junior tranche tokens, a mock USDC token and a pool contract, with the GPU-lot valuation set through a demo appraiser control. Jake stepped through the flows in the UI, including a simulated price drop, and noted it largely worked on the first attempt apart from a UI glitch. This was a technical demo, not a financial product. Jake was clear that he is "not advocating for that sort of leverage." A few practical notes from the session: MetaMask was unreliable against the local Foundry fork, so Jake used Scaffold HBAR's burner wallet instead. The app's "Get gas" button funds a local wallet with test HBAR on the local node, and the Debug Contracts view and the built-in block explorer let him check balances and transactions. Jake suggested going further with an evaluator agent that can run the app itself, for example with the Playwright MCP, or the Next.js MCP to catch errors. Key takeaway: With the scaffold and agent context in place, Claude Code sub-agents planned, built and reviewed a full proof of concept on a local chain within the stream. Resources Replay: Fresh Laptop to a Running Hedera App with Scaffold HBAR ( Scaffold HBAR: browse the templates and copy a command ( Hedera docs: docs.hedera.com ( Smart contracts on Hedera: core concepts ( Tutorials: Hedera tutorials ( Community: Hedera Discord ( Which Scaffold HBAR template would you start from, and what would you have your coding agent build first? Reply and let us know.

Loading the story on Tree News…