-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
75 lines (62 loc) · 3.22 KB
/
env.example
File metadata and controls
75 lines (62 loc) · 3.22 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
# EAS SDK Configuration Example
#
# 🚀 QUICK START:
# 1. Copy this file: cp env.example .env
# 2. Edit .env and add your private key and account
# 3. Get testnet ETH from https://sepoliafaucet.com
# 4. Run: python examples/quick_start.py
#
# ⚠️ WARNING: NEVER commit .env to version control!
# =============================================================================
# REQUIRED: Account Configuration
# =============================================================================
# Your Ethereum private key (64 hex characters after 0x)
# Generate new one: python -c "from eth_account import Account; print(Account.create().key.hex())"
EAS_PRIVATE_KEY=0xYOUR_PRIVATE_KEY_HERE_REPLACE_WITH_REAL_64_HEX_CHARS
# Your wallet address (40 hex characters after 0x, must match the private key above)
EAS_FROM_ACCOUNT=0xYOUR_ADDRESS_HERE_REPLACE_WITH_REAL_40_HEX_CHARS
# =============================================================================
# NETWORK CONFIGURATION
# =============================================================================
# Target blockchain network - use testnet for development!
# Supported: ethereum, base, arbitrum, optimism, polygon, sepolia, base-sepolia, etc.
EAS_CHAIN=sepolia
# Optional: Custom RPC URL (overrides network default)
# Get free endpoints from Infura, Alchemy, or Ankr
# EAS_RPC_URL=https://your-custom-rpc-endpoint.com
# =============================================================================
# OPTIONAL: Advanced Configuration
# =============================================================================
# Custom EAS contract address (rarely needed)
# EAS_CONTRACT_ADDRESS=0xC2679fBD37d54388Ce493F1DB75320D236e1815e
# Example data for testing
EXAMPLE_SCHEMA=0x071de830af40cf7e1035554968b97f9ae2441e8b6a15f02217aa3f46dad85d86
EXAMPLE_RECIPIENT=0x1e3de6aE412cA218FD2ae3379750388D414532dc
# Environment settings
EAS_ENVIRONMENT=development
EAS_LOG_LEVEL=INFO
# =============================================================================
# SECURITY CHECKLIST:
# =============================================================================
# ✅ Copy this file to .env (not env.example)
# ✅ Replace ALL placeholder values with real ones
# ✅ Use testnet (sepolia) for development
# ✅ Get testnet ETH from faucets (links below)
# ✅ Keep your private key secret (never share/commit)
# ✅ Set file permissions: chmod 600 .env
# ✅ Verify .env is in .gitignore
# ✅ Use environment variables in production (not .env files)
# =============================================================================
# GET TESTNET ETH:
# =============================================================================
# Sepolia: https://sepoliafaucet.com
# Base Sepolia: https://faucet.quicknode.com/base/sepolia
# Arbitrum Sepolia: https://faucet.quicknode.com/arbitrum/sepolia
# =============================================================================
# BACKWARDS COMPATIBILITY:
# =============================================================================
# Legacy environment variables (deprecated, use EAS_ prefixed versions):
# PRIVATE_KEY=0x... → EAS_PRIVATE_KEY=0x...
# FROM_ACCOUNT=0x... → EAS_FROM_ACCOUNT=0x...
# NETWORK=sepolia → EAS_CHAIN=sepolia
# RPC_URL=https://...→ EAS_RPC_URL=https://...