Environment Variables Config
The framework uses environment variables for configuration. You’ll need to create a .env file in your project’s root directory.
Example .env File
.env File# Required API keys and configurations
PRIVATE_KEYPAIR=<YOUR_PRIVATE_KEYPAIR> # Replace with your private keypair for deployment
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY> # Replace with your OpenAI API key
RPC_ENDPOINT=https://api.mainnet-beta.solana.com # Replace with your RPC endpoint URL
# Trade parameters
ACTION=buy # Set to "buy" or "sell"
MINT=<YOUR_TOKEN_MINT_ADDRESS> # Replace with the token contract address
AMOUNT=10000 # Replace with the amount of SOL or tokens to trade
# Debugging
NODE_DEBUG=module Dependencies
Dependency
Version
Purpose
Development Dependencies
Last updated