Quickstart
Get your local development environment up and running in under 5 minutes
Prerequisites¶
Before you begin, make sure you have the following installed:
- Node.js 18+
- Git
- Docker (for local development)
- Basic knowledge of blockchain development
Step 1: Install AggSandbox¶
Clone and install AggSandbox, the local development environment for Agglayer:
# Clone AggSandbox
git clone https://github.com/agglayer/aggsandbox.git
# Navigate to the directory
cd aggsandbox
# Install dependencies
make install
Step 2: Start Local Environment¶
Start your local Agglayer development environment:
# Start local development environment
aggsandbox start --detach
# Or fork from mainnet for testing with real data
aggsandbox start --fork --detach
Step 3: Verify Installation¶
Check that your environment is running correctly:
# Check available bridges
aggsandbox show bridges --network 0
# Monitor events
aggsandbox events --chain anvil-l1
Step 4: Your First Cross-chain Transaction¶
Now you’re ready to make your first cross-chain transaction! Here’s a simple example:
# Check the status of your local environment
aggsandbox status
# View available networks
aggsandbox show networks
What’s Next?¶
Now that you have AggSandbox running, you can:
- Explore Examples: Check out the production-ready examples on the developer portal
- Learn Bridging: Start with Asset Bridging to transfer tokens
- Use Agglayer SDK: Integrate with the Agglayer SDK for your applications
Troubleshooting¶
If you encounter any issues:
- Check Docker: Make sure Docker is running
- Verify Ports: Ensure ports 8545, 8546, and 8080 are available
- Restart Services: Try
aggsandbox stopthenaggsandbox start --detach - Check Logs: Use
aggsandbox logsto see detailed error messages