Spaces:
Runtime error
Runtime error
Commit History
-
Create AfricaCryptoChainx
Verified signature// accx-blockchain-explorer // Routes: api.africacryptochainx.com/* const CORS_HEADERS = { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Methods": "GET, POST, OPTIONS", "Access-Control-Allow-Headers": "Content-Type, Authorization", "Content-Type": "application/json" }; // Blockchain API endpoints const PROVIDERS = { ethereum: "https://eth-mainnet.g.alchemy.com/v2/demo", bsc: "https://bsc-dataseed.binance.org", polygon: "https://polygon-rpc.com", bitcoin: "https://blockchain.info" }; export default { async fetch(request, env, ctx) { if (request.method === "OPTIONS") { return new Response(null, { status: 204, headers: CORS_HEADERS }); } const url = new URL(request.url); const path = url.pathname; try { // Health check if (path === "/" || path === "/health") { return jsonResponse({ status: "ok", service: "ACCX Blockchain Explorer", timestamp: new Date().toISOString() }); } // === ETHEREUM === …0f3dfae
-
Update app.py
Verified signatureb62a94f
-
feature-new-file
Verified signatureaa46428
-
feature-new-function
Verified signature9a91ec5 -
create app.py
Verified signatureeab5408 -
initial commit
Verified signature808a649