Required for database, authentication, and storage.
# Get these from: https://supabase.com/dashboard/project/[your-project]/settings/apiNEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.coNEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-keySUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key
1
Get Supabase Credentials
Log into your Supabase dashboard
Navigate to Settings > API
Copy the Project URL (use for NEXT_PUBLIC_SUPABASE_URL)
Copy the anon public key (use for NEXT_PUBLIC_SUPABASE_ANON_KEY)
Copy the service_role key (use for SUPABASE_SERVICE_ROLE_KEY)
The service_role key bypasses Row Level Security (RLS) and should only be used in secure server-side contexts.
eStory uses two AI services for transcription and text enhancement.
# Google Gemini API Key (for text enhancement and story analysis)# Get from: https://makersuite.google.com/app/apikeyGOOGLE_GENERATIVE_AI_API_KEY=your-google-ai-api-key
eStory’s smart contracts are deployed on Base Sepolia (testnet).
# Populated after deploying contracts to Base SepoliaNEXT_PUBLIC_ESTORY_TOKEN_ADDRESS=0x...NEXT_PUBLIC_STORY_PROTOCOL_ADDRESS=0x...NEXT_PUBLIC_STORY_NFT_ADDRESS=0x...NEXT_PUBLIC_INITIAL_ADMIN_ADDRESS=0x...NEXT_PUBLIC_VERIFIED_METRICS_ADDRESS=0x...
If you’re using the official deployed contracts, these addresses can be found in lib/contracts.ts. For development, you can deploy your own instances.
Required only if you’re deploying your own smart contract instances.
# Private key for deploying contracts (WITHOUT 0x prefix)# WARNING: Never share or commit this key!ADMIN_WALLET_PRIVATE_KEY=your-wallet-private-key# Basescan API key for contract verification# Get from: https://basescan.org/myapikeyBASESCAN_API_KEY=your-basescan-api-key# Admin private key for cron jobs (token distribution)ADMIN_PRIVATE_KEY=your-admin-private-key
Never commit private keys to version control! These keys control real blockchain accounts and funds.
1
Export MetaMask Private Key
Open MetaMask
Click the three dots > Account Details
Click Export Private Key
Enter your MetaMask password
Copy the private key (remove the 0x prefix for Hardhat)
Required for Chainlink Compute Runtime Environment integration.
# Secret for authenticating CRE DON callback requestsCRE_CALLBACK_SECRET=your-cre-callback-secret# CRE workflow URL (set after deployment)CRE_WORKFLOW_URL=CRE_API_KEY=
CRE integration is optional and only needed if you’re running verifiable AI computation workflows.