Build an Appchain with Your AI Agent
Welcome to the hackathon! This guide will walk you through building an appchain from scratch. You’ll go from a simple idea to a functioning appchain and frontend efficiently.Step 1: Prepare Your Workspace
Before installing tools or initializing your appchain, create a dedicated directory for your project. This keeps your configuration files, VM binaries, and smart contracts organized in one place. Run the following commands in your terminal:Step 2: Install Your AI Skill [Terminal]
Your AI agent needs theInitia Appchain Dev skill to help you manage
your appchain, write smart contracts, and build your frontend.
Run the following command in your terminal:
Recommended Setup
To get the most out of this guide, we recommend having two terminal tabs or a split-screen setup:- AI agent: For high-level tasks, contract generation, and troubleshooting.
- Standard Terminal: For interactive CLI commands (like
weave init) and long-running builds.
Step 3: Choose Your Track & VM [Planning]
Before installing tools, decide what you want to build. This choice determines whichVirtual Machine (VM) your AI agent will set up for you.
| Track | Recommended VM | Why? |
|---|---|---|
Gaming / Consumer | Move | Best for complex on-chain logic and object-oriented assets. |
DeFi / Institutional | EVM (Solidity) | Best for leveraging existing Ethereum tooling and libraries. |
Agents / Tooling | Wasm (Rust) | Best for performance-critical logic and Rust ecosystem integration. |
Step 4: Prerequisites Checklist
To ensure a smooth setup, verify you have the following system tools installed:- Docker Desktop: Required for running the bridge bots and relayer. Must be running.
- Go (1.22+): Required to build the appchain binaries.
- Track Specifics:
- Move: No extra tools required.
- EVM: Foundry (Forge) is recommended for contract development.
- Wasm: Rust & Cargo are required for contract development.
Step 5: AI-Powered Initia Tool Setup and Verification
Now, ask your AI agent to handle the Initia-specific tools. It will install the core CLIs (weave, initiad, jq), build your chosen VM binary (minitiad), and then verify everything is accessible in your PATH.
Replace <MOVE / EVM / WASM> with your selected track from Step 3 (Move, EVM, or Wasm).
Prompt:
Verify Installation & PATH [AI Agent]
After setup completes, your AI agent can verify the tools are accessible from anywhere on your system. Prompt:Step 6: Initial Setup with weave init [Terminal]
Your AI agent is your partner in this hackathon, but the weave CLI requires
an interactive setup flow to prepare your environment and launch your appchain.
You can run it whenever you need to initialize or reconfigure your setup.
If you already ran
weave init and want to create a new appchain, run the
following commands first:Foundation & Funding
Generate Gas Station Account
The Gas Station is an account on the Initia L1 that will fund your rollup’s infrastructure.Prompt:Generate new account (recommended).Result:
You will see your new Gas Station Address. Copy this address.Fund Your Gas Station Account
Action: Go to the Initia Testnet Faucet.Action: Paste your address and click Submit to receive testnet INIT tokens.Prompt:continue and press Enter.Rollup Identity
Choose Your Action
Prompt:Launch a new rollup.Select L1 Network
Prompt:Testnet (initiation-2).Select Virtual Machine (VM)
Prompt:Move).Specify Rollup Chain ID
Prompt:mygame-1).Specify Rollup Gas Denom
Prompt:Tab for default (umin) or enter your own.Specify Rollup Node Moniker
Prompt:Tab for default (operator).Security & Genesis
Setup Method for System Keys
Prompt:Generate new system keys.System Accounts Funding Option
Prompt:Use the default preset.Specify Fee Whitelist Addresses
Prompt:Enter to leave empty.Add Gas Station Account to Genesis
Prompt:Yes.Specify Genesis Balance
Prompt:1000000000000000000000000 (10^24). This ensures you have plenty of tokens for testing, especially for EVM.Move Track: Use
10000000000000000000 (10^19) to avoid u64 overflows.Add Additional Genesis Accounts
Prompt:No.Step 7: Setup Interwoven Bots [Terminal]
To enable the Optimistic bridge and cross-chain communication (IBC) between Initia L1 and your appchain, you need to start theOPinit Executor and the
IBC Relayer. These bots manage the cross-chain connectivity of your chain.
Prerequisite: Your appchain must be running before configuring these bots. Because
weave init runs your chain in the background, you can continue using the same terminal window.7.1 Start the OPinit Executor
The executor handles the submission of rollup data and bridge operations. Run the following command:Listen Address
Prompt:Action:
Press
Tab to use localhost:3000 (ensure nothing else is running on this port).Finalize Configuration
Action:
Press
Enter for L1 RPC, Chain ID, and Gas Denom. For Rollup RPC, press Tab to use http://localhost:26657.7.2 Start the IBC Relayer
The relayer enables asset transfers (like INIT) between the L1 and your appchain. Run the following command:Endpoints
Action:
Press
Tab for both RPC (http://localhost:26657) and REST (http://localhost:1317) endpoints.Channel Method
Prompt:Action:
Select
Subscribe to only transfer and nft-transfer IBC Channels (minimal setup).Select Channels
Prompt:Action:
Press
Space to select all (transfer and nft-transfer), then press Enter.Step 8: Final Key Setup [Terminal]
Why: TheGas Station account acts as your Universal Developer Key. Importing it allows you to sign transactions manually via the CLI, and it
enables your AI co-pilot to deploy contracts and interact with your appchain.
Action: Run these commands to import your account into both the L1
(initiad) and L2 (minitiad) keychains:
gas-station
appears in both: