Blockchain Integration
Aether integrates blockchain technology for secure, on-chain decision-making.
It allows agents to interact with blockchain networks like Ethereum and Solana, enabling trustless operations and verifiable task execution.
Key Features
Smart Contract Deployment: Deploy contracts to automate task verification and execution.
On-Chain Decision-Making: Nodes interact with blockchain for trustless operations and decentralized coordination.
Secure Wallet Management: Wallet configurations are securely managed using environment variables for paths and private keys.
Example: Deploying a Smart Contract
Here’s how to deploy and interact with a smart contract on Ethereum using Aether’s Blockchain Integration module:
Managing Wallets Securely
Aether supports secure wallet management by dynamically retrieving wallet configurations using environment variables.
Solana Wallet
Set the wallet path using the SOLANA_WALLET_PATH
environment variable:
Ethereum Wallet
Set the private key using the ETHEREUM_WALLET_PRIVATE_KEY
environment variable:
Code Snippet for Wallet Loading
Common Issues and Troubleshooting
Problem:
FileNotFoundError: Solana wallet path not found.
Solution: Ensure theSOLANA_WALLET_PATH
environment variable is set correctly.Problem:
ValueError: Ethereum private key not configured.
Solution: Set theETHEREUM_WALLET_PRIVATE_KEY
environment variable.Problem: Contract deployment failed. Solution:
Verify your RPC URL is correct.
Ensure your Ethereum account has sufficient funds for gas fees.
Wallet Configuration
Environment Variables for Wallets
Wallet paths and private keys are securely managed using environment variables. This approach ensures sensitive data is protected and avoids hardcoding values in source files.
Referencing Wallets in YAML
In the config.yaml
file, wallets are referenced dynamically using their respective environment variables:
Instructions for Developers
Set the Environment Variables: Add variables to your
.env
file or export them in your shell:Edit the YAML File: Specify the environment variable names for wallet configurations:
Run the Framework: The framework automatically loads these variables at runtime:
Security Benefits
Environment-Specific: Easily set different wallets for development, staging, and production environments.
No Hardcoding: Protects sensitive data from being exposed in source control.
Scalability: Works seamlessly in CI/CD pipelines and cloud-based deployments.
Last updated