First Steps in Development
First Steps with æternity Blockchain Development
Setting Up Your First Project
Getting started with æternity blockchain development is straightforward with the æternity project tool (aeproject). This command-line utility helps you initialize projects, compile smart contracts, run tests, and deploy to the blockchain.
To begin your journey, create a new project directory and initialize it with the aeproject tool:
The initialization process creates a well-organized project structure with dedicated directories for your smart contracts, deployment scripts, tests, and Docker configuration. The initialization process creates a well-organized project structure: my-aepp/
Now it's time to write your first smart contract in the Sophia language:
To ensure your contract works as expected, write a test file:
Run your tests with aeproject test
.
Wallet Setup and Acquiring Test Tokens
To interact with the æternity blockchain, you'll need a wallet. The Base æpp (Mobile Wallet) is a comprehensive mobile wallet for iOS and Android. Create a new account and securely store your seed phrase.
For browser-based development, install the SuperHero Wallet (Browser Extension). It allows easy switching between mainnet and testnet environments.
Before deploying to mainnet, develop on the testnet using free test tokens. Visit https://faucet.aeternity.io or use the command:
Environment Configuration
Configure your environment to connect to the appropriate æternity network:
During development, use a local node with aeproject node
for faster testing.
Next Steps
Join the æternity Forum to connect with the community. Review example æpps for inspiration and best practices.
Always develop on testnet before moving to mainnet, and carefully review your code for security vulnerabilities.
Last updated
Was this helpful?