-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
50 lines (40 loc) · 1.94 KB
/
Copy path.env.example
File metadata and controls
50 lines (40 loc) · 1.94 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
# ============================================================
# x402 Demo 環境變數設定範本
# 複製此檔案為 .env 並填入您的實際值
# cp .env.example .env
# ============================================================
# ============================================================
# Server 設定(seller side)
# ============================================================
# 您的 EVM 錢包地址(用來接收 USDC 付款)
# 可使用任何 EVM 相容錢包地址(e.g., MetaMask, CDP Wallet)
EVM_PAYEE_ADDRESS=0xYourEVMWalletAddressHere
# 您的 Solana 錢包地址(用來接收 SVM 付款,選填)
SVM_PAYEE_ADDRESS=YourSolanaWalletAddressHere
# Facilitator URL
# 選項 1: x402.org (免費, 僅 testnet, 無需帳號)
FACILITATOR_URL=https://x402.org/facilitator
# 選項 2: CDP Facilitator (需要 CDP API Keys, 支援 mainnet)
# FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402
# Server 監聽 Port (預設: 4021)
PORT=4021
# ============================================================
# Client 設定(buyer side)
# ============================================================
# 您的 EVM 私鑰(用來簽署付款)
# 警告:僅使用 testnet 私鑰!請勿使用 mainnet 私鑰!
# 產生測試私鑰: cast wallet new (需要 Foundry)
EVM_PRIVATE_KEY=0xYourEVMPrivateKeyHere
# EVM RPC URL(可選)
# 設定後可啟用 gas sponsoring extensions (EIP-2612, ERC-20 approval)
# Testnet: https://sepolia.base.org
# 可從 Alchemy, Infura, QuickNode 等取得
# EVM_RPC_URL=https://sepolia.base.org
# 目標 Server URL(client 連線用,預設: http://localhost:4021)
# SERVER_URL=http://localhost:4021
# ============================================================
# CDP API Keys(使用 CDP Facilitator 時需要)
# 從 https://cdp.coinbase.com/ 取得
# ============================================================
# CDP_API_KEY_ID=your-cdp-api-key-id
# CDP_API_KEY_SECRET=your-cdp-api-key-secret