-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
91 lines (72 loc) · 3.27 KB
/
.env.example
File metadata and controls
91 lines (72 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here
# Encryption & Authentication
# Generate with: openssl rand -hex 32
ENCRYPTION_KEY=your-32-byte-hex-encryption-key-here
# Generate with: openssl rand -base64 64
JWT_SECRET=your-jwt-secret-here
# Alchemy RPC Provider URLs (https://alchemy.com/)
# Create apps for each chain and copy the API key
ALCHEMY_API_KEY=your-alchemy-api-key
BITCOIN_RPC_URL=https://btc-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
POLYGON_RPC_URL=https://polygon-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
# Bitcoin Cash RPC - Uses Crypto APIs (free tier available)
# Format: https://rest.cryptoapis.io/blockchain-data/bitcoin-cash/mainnet
BCH_RPC_URL=https://rest.cryptoapis.io/blockchain-data/bitcoin-cash/mainnet
# Crypto APIs for Bitcoin Cash (BCH) and other blockchains
# Get your key from https://cryptoapis.io/
CRYPTO_APIS_KEY=your-crypto-apis-key-here
# Solana Configuration (Alchemy)
NEXT_PUBLIC_SOLANA_NETWORK=mainnet
NEXT_PUBLIC_SOLANA_RPC_URL=https://solana-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
SOLANA_RPC_URL=https://solana-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
# Platform Fee Wallets (NEVER commit actual values)
PLATFORM_FEE_WALLET_BTC=your-bitcoin-address
PLATFORM_FEE_WALLET_BCH=your-bitcoin-cash-address
PLATFORM_FEE_WALLET_ETH=your-ethereum-address
PLATFORM_FEE_WALLET_POL=your-polygon-address
PLATFORM_FEE_WALLET_SOL=your-solana-address
# System HD Wallet Seed Phrases (NEVER commit actual values)
# Generate with: npx @scure/bip39 generate
# These are used to derive unique payment addresses for each transaction
# The system owns these wallets and forwards funds to merchants after taking commission
SYSTEM_MNEMONIC_BTC=your-menominic-phrase
SYSTEM_MNEMONIC_ETH=your-menominic-phrase
SYSTEM_MNEMONIC_POL=your-menominic-phrase
SYSTEM_MNEMONIC_SOL=your-menominic-phrase
# Exchange Rate APIs
# Primary: Tatum API (for BTC, ETH, SOL)
TATUM_API_KEY=your-tatum-api-key-here
# Fallback: Kraken API (free, no API key required)
# Used as fallback for all currencies and primary for POL (Polygon)
# Tatum returns NaN for POL/MATIC, so Kraken is used automatically
# No configuration needed - Kraken public API is free and unauthenticated
# Webhook Configuration
WEBHOOK_SIGNING_SECRET=your-webhook-signing-secret
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:3000,https://yourdomain.com
# Application URL
NEXT_PUBLIC_APP_URL=http://localhost:3000
APP_URL=http://localhost:3000
# Internal API Key for Edge Functions
# Generate with: openssl rand -hex 32
INTERNAL_API_KEY=your-internal-api-key-here
# Cron Secret for scheduled jobs (can be same as INTERNAL_API_KEY)
# Used to authenticate cron job requests
CRON_SECRET=your-cron-secret-here
# Node Environment
NODE_ENV=development
PORT=8080
# Mailgun for Email
MAILGUN_API_KEY=your-mailgun-api-key
MAILGUN_DOMAIN=mg.example.com
REPLY_TO_EMAIL=support@example.com
# WalletConnect / Reown AppKit
# Get your project ID from https://cloud.reown.com/
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your-walletconnect-project-id
NPM_TOKEN=your-npm-token-here
CHANGENOW_API_KEY=your-changenow-api-
BLOCKFROST_API_KEY=your-blockfrost-api-key-here