This guide provides step-by-step instructions for obtaining every API key and environment variable needed to run TokenForge in production.
- Core Requirements
- Blockchain RPC Endpoints
- Deployer Wallets
- Market Data APIs
- Block Explorer APIs
- Social Media APIs
- Storage Services
- Final Checklist
Time Required: 5 minutes
Cost: Free tier available
- Go to https://www.convex.dev/
- Click "Get Started"
- Sign up with GitHub or email
- Create a new project
- The following will be auto-generated:
CONVEX_DEPLOYMENT- Added automatically to.env.localVITE_CONVEX_URL- Added automatically to.env.local
Time Required: 1 minute
Cost: Free
Generate a secure random secret:
# macOS/Linux
openssl rand -base64 32
# Windows (PowerShell)
[System.Convert]::ToBase64String((1..32|ForEach{[byte](Get-Random -Max 256)}))
# Example output: k5J3kLm9Np2Qr7StUvWxYz1AbCdEfGhIj4KlMnOpQrS=Add to .env:
AUTH_SECRET=your_generated_secret_here
Time Required: 10 minutes
Cost: Free tier (300M compute units/month)
-
Sign Up
- Go to https://www.alchemy.com/
- Click "Get started for free"
- Sign up with email or Google
-
Create Ethereum App
- Click "Create new app"
- Name: "TokenForge-Ethereum"
- Chain: "Ethereum Mainnet"
- Click "Create app"
-
Get Ethereum RPC URL
- Click on your app
- Click "API Key"
- Copy the HTTPS URL
- Example:
https://eth-mainnet.g.alchemy.com/v2/your-api-key
-
Create BSC App (Repeat for BSC)
- Create another app
- Chain: "BNB Smart Chain Mainnet"
- Get the URL
-
Add to
.env:
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/your-key
VITE_ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/your-key
BSC_RPC_URL=https://bnb-mainnet.g.alchemy.com/v2/your-key
VITE_BSC_RPC_URL=https://bnb-mainnet.g.alchemy.com/v2/your-key
Time Required: 10 minutes
Cost: Free tier (100k requests/day)
-
Sign Up
- Go to https://www.infura.io/
- Click "Sign Up"
- Verify email
-
Create Project
- Click "Create New API Key"
- Name: "TokenForge"
- Select "Web3 API"
-
Get Endpoints
- Go to project settings
- Copy Ethereum endpoint
- Enable BSC addon for BSC endpoint
Option A: QuickNode (Recommended)
Time Required: 10 minutes
Cost: Free tier (10M requests/month)
- Go to https://www.quicknode.com/
- Sign up
- Click "Create Endpoint"
- Select "Solana" → "Mainnet"
- Copy the HTTPS endpoint
Option B: Public RPC (Free but less reliable)
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
VITE_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
Time Required: 5 minutes
Cost: Free to create, needs funds for deployments
Option 1: Using MetaMask
- Install MetaMask: https://metamask.io/
- Create a new wallet (NOT your main wallet!)
- Click account menu → "Account details"
- Click "Export Private Key"
- Enter password and copy key
Option 2: Command Line
# Install ethers CLI
npm install -g ethers-cli
# Generate new wallet
ethers wallet create
# Output will include private keyAdd to .env:
DEPLOYER_PRIVATE_KEY=0x_your_private_key_here
VITE_DEPLOYER_PRIVATE_KEY=0x_your_private_key_here
Time Required: 5 minutes
Cost: Free to create, needs SOL for deployments
- Install Solana CLI
# macOS/Linux
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
# Windows
# Download from https://github.com/solana-labs/solana/releases- Generate Keypair
solana-keygen new --outfile ~/deployer-keypair.json
# View the keypair
cat ~/deployer-keypair.json- Add to
.env:
SOLANA_DEPLOYER_KEYPAIR=[1,2,3,4,5...] # The JSON array from the file
- Never use your personal wallet
- Only fund with amounts needed for deployments
- Keep private keys secure and never commit to git
Time Required: 5 minutes
Cost: Free tier (10k calls/month) or Pro ($129/month)
-
Sign Up
- Go to https://www.coingecko.com/en/api
- Click "Get Your API Key"
- Sign up with email
-
Generate API Key
- Go to https://www.coingecko.com/en/developers/dashboard
- Click "Add New Key"
- Name: "TokenForge"
- Copy the key (starts with "CG-")
-
Add to
.env:
COINGECKO_API_KEY=CG-your_api_key_here
VITE_COINGECKO_API_KEY=CG-your_api_key_here
Time Required: 5 minutes
Cost: Free tier available
- Go to https://www.geckoterminal.com/dapp/api
- Sign up for API access
- Get your API key
- Add to
.env:
GECKOTERMINAL_API_KEY=your_key
VITE_GECKOTERMINAL_API_KEY=your_key
Time Required: 5 minutes
Cost: Free (5 calls/second)
-
Sign Up
- Go to https://etherscan.io/register
- Create account and verify email
-
Get API Key
- Go to https://etherscan.io/myapikey
- Click "Add" to create new key
- Name: "TokenForge"
- Copy the key
-
Add to
.env:
ETHERSCAN_API_KEY=your_etherscan_key
VITE_ETHERSCAN_API_KEY=your_etherscan_key
Time Required: 5 minutes
Cost: Free (5 calls/second)
-
Sign Up
- Go to https://bscscan.com/register
- Same account works if you have Etherscan
-
Get API Key
- Go to https://bscscan.com/myapikey
- Create new key for BscScan
- Copy the key
-
Add to
.env:
BSCSCAN_API_KEY=your_bscscan_key
VITE_BSCSCAN_API_KEY=your_bscscan_key
Time Required: 10 minutes
Cost: Free tier available
- Go to https://pro.solscan.io/
- Sign up for API access
- Get API credentials
Time Required: 1-3 days (approval wait)
Cost: Basic tier $100/month
-
Apply for Developer Account
- Go to https://developer.twitter.com/
- Click "Sign up"
- Choose "Basic" tier ($100/month)
- Fill application (be specific about use case)
- Wait for approval (usually 1-3 days)
-
Create App
- Go to Developer Portal
- Click "Create Project"
- Name: "TokenForge"
- Create App within project
-
Generate All Tokens
- Go to your app settings
- Click "Keys and tokens"
- Generate:
- API Key & Secret
- Access Token & Secret
- Enable OAuth 2.0
-
Add to
.env:
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET=your_api_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_SECRET=your_access_secret
VITE_TWITTER_API_KEY=your_api_key
Time Required: 2 minutes
Cost: Free
-
Create Webhook
- Open Discord
- Go to your server
- Click Server Settings → Integrations
- Click "Webhooks" → "New Webhook"
- Name: "TokenForge Announcements"
- Select channel
- Copy Webhook URL
-
Add to
.env:
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxx/yyy
VITE_DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxx/yyy
Time Required: 5 minutes
Cost: Free
-
Create Bot
- Open Telegram
- Search for "@BotFather"
- Send
/newbot - Choose name: "TokenForge Bot"
- Choose username: "tokenforge_bot"
- Copy the token
-
Get Chat ID
- Create a channel/group
- Add your bot as admin
- Send a message
- Visit:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates - Find your chat_id in the response
-
Add to
.env:
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_CHANNEL_ID=-1001234567890
VITE_TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
Time Required: 5 minutes
Cost: Free tier (1GB storage)
-
Sign Up
- Go to https://www.pinata.cloud/
- Sign up with email
-
Generate API Keys
- Go to API Keys section
- Click "New Key"
- Select permissions: "pinFileToIPFS"
- Name: "TokenForge"
- Copy API Key and Secret
-
Add to
.env:
VITE_IPFS_GATEWAY=https://gateway.pinata.cloud
VITE_PINATA_API_KEY=your_api_key
VITE_PINATA_SECRET_KEY=your_secret_key
Copy this to track your progress:
- Convex account created
- AUTH_SECRET generated
- Ethereum RPC URL obtained
- BSC RPC URL obtained
- Solana RPC URL obtained
- EVM deployer wallet created and funded
- Solana deployer wallet created and funded
- CoinGecko API key obtained
- Etherscan API key
- BscScan API key
- Twitter Developer account approved
- Discord webhook created
- Telegram bot created
- Pinata account created
- All required variables in
.env - Deployer wallets funded with:
- ETH for Ethereum deployments (~0.05 ETH)
- BNB for BSC deployments (~0.01 BNB)
- SOL for Solana deployments (~0.5 SOL)
- Test deployment successful
# Core
CONVEX_DEPLOYMENT=standing-oyster-615
VITE_CONVEX_URL=https://standing-oyster-615.convex.cloud
AUTH_SECRET=k5J3kLm9Np2Qr7StUvWxYz1AbCdEfGhIj4KlMnOpQrS=
# Blockchain RPCs
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/Kc5_xxxxxxxxxxxx
VITE_ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/Kc5_xxxxxxxxxxxx
BSC_RPC_URL=https://bnb-mainnet.g.alchemy.com/v2/Bsc_xxxxxxxxxxxx
VITE_BSC_RPC_URL=https://bnb-mainnet.g.alchemy.com/v2/Bsc_xxxxxxxxxxxx
SOLANA_RPC_URL=https://solana-mainnet.g.alchemy.com/v2/Sol_xxxxxxxxxxxx
VITE_SOLANA_RPC_URL=https://solana-mainnet.g.alchemy.com/v2/Sol_xxxxxxxxxxxx
# Deployer Wallets
DEPLOYER_PRIVATE_KEY=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
VITE_DEPLOYER_PRIVATE_KEY=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
SOLANA_DEPLOYER_KEYPAIR=[123,45,67,89,...]
# APIs
COINGECKO_API_KEY=CG-xxxxxxxxxxxxxxxxxxxx
VITE_COINGECKO_API_KEY=CG-xxxxxxxxxxxxxxxxxxxx
ETHERSCAN_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
VITE_ETHERSCAN_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
BSCSCAN_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
VITE_BSCSCAN_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Social Media
TWITTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_API_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_ACCESS_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/xxxxxxxxxxxx
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
# Storage
VITE_IPFS_GATEWAY=https://gateway.pinata.cloud
VITE_PINATA_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
VITE_PINATA_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx- Double-check you copied the entire key
- Ensure no extra spaces or line breaks
- Verify the key is active in the service dashboard
- Check API key permissions/scopes
- For Twitter, ensure you have write permissions
- For blockchain APIs, check rate limits
- Verify RPC URLs include https://
- Check if service is down (status pages)
- Try alternative RPC endpoints
- Implement caching
- Use multiple API keys
- Upgrade to paid tiers for production
- Alchemy Support: https://docs.alchemy.com/
- Infura Support: https://docs.infura.io/
- CoinGecko Support: https://support.coingecko.com/
- Twitter API: https://developer.twitter.com/en/support
- Telegram Bot API: https://core.telegram.org/bots/api
- Pinata Docs: https://docs.pinata.cloud/
Remember: Keep your private keys and API keys secure. Never share them or commit them to version control!