From 70ea8f5c149bad2e6991284acf049726bdbf88c9 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Tue, 16 Jun 2026 18:21:32 -0700 Subject: [PATCH] keeps: use Baking Bad rpc.tzkt.io for mainnet RPC (tzbeta drops connections) tzbeta.net resolves but intermittently socket-hang-ups on contract-context queries under load, failing the mint flow's sequential RPC calls. Switch mainnet to https://rpc.tzkt.io/mainnet (5/5 reliable in probe, same provider as the api.tzkt.io this code already depends on). Ghostnet stays on teztnets. Co-Authored-By: Claude Opus 4.8 --- system/netlify/functions/keep-mint.mjs | 2 +- system/netlify/functions/keep-prepare-background.mjs | 2 +- system/netlify/functions/keep-update.mjs | 2 +- system/netlify/functions/keeps-config.mjs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/netlify/functions/keep-mint.mjs b/system/netlify/functions/keep-mint.mjs index 26002a174..df92f1d8e 100644 --- a/system/netlify/functions/keep-mint.mjs +++ b/system/netlify/functions/keep-mint.mjs @@ -39,7 +39,7 @@ const NETWORK = process.env.TEZOS_NETWORK || "mainnet"; const OVEN_URL = process.env.OVEN_URL || "https://oven.aesthetic.computer"; const OVEN_FALLBACK_URL = "https://oven.aesthetic.computer"; // Always available fallback const RPC_URL = NETWORK === "mainnet" - ? "https://rpc.tzbeta.net" + ? "https://rpc.tzkt.io/mainnet" : "https://rpc.ghostnet.teztnets.com"; // IPFS Gateway configuration diff --git a/system/netlify/functions/keep-prepare-background.mjs b/system/netlify/functions/keep-prepare-background.mjs index 31dc2575d..431ca9cd1 100644 --- a/system/netlify/functions/keep-prepare-background.mjs +++ b/system/netlify/functions/keep-prepare-background.mjs @@ -36,7 +36,7 @@ const NETWORK = process.env.TEZOS_NETWORK || "mainnet"; const OVEN_URL = process.env.OVEN_URL || "https://oven.aesthetic.computer"; const OVEN_FALLBACK_URL = "https://oven.aesthetic.computer"; const RPC_URL = NETWORK === "mainnet" - ? "https://rpc.tzbeta.net" + ? "https://rpc.tzkt.io/mainnet" : "https://rpc.ghostnet.teztnets.com"; const VERSION_BY_PROFILE = { diff --git a/system/netlify/functions/keep-update.mjs b/system/netlify/functions/keep-update.mjs index 32197b01f..c6f3d614b 100644 --- a/system/netlify/functions/keep-update.mjs +++ b/system/netlify/functions/keep-update.mjs @@ -24,7 +24,7 @@ if (dev) { const NETWORK = process.env.TEZOS_NETWORK || "mainnet"; const TZKT_API = NETWORK === "mainnet" ? "https://api.tzkt.io/v1" : `https://api.${NETWORK}.tzkt.io/v1`; const RPC_URL = NETWORK === "mainnet" - ? "https://rpc.tzbeta.net" + ? "https://rpc.tzkt.io/mainnet" : "https://rpc.ghostnet.teztnets.com"; // Helper to convert string to bytes (for Tezos metadata) diff --git a/system/netlify/functions/keeps-config.mjs b/system/netlify/functions/keeps-config.mjs index 046260fe5..903dbf71e 100644 --- a/system/netlify/functions/keeps-config.mjs +++ b/system/netlify/functions/keeps-config.mjs @@ -66,7 +66,7 @@ function resolveVersion(secretDoc, profile, network) { } function rpcForNetwork(network) { - return network === "mainnet" ? "https://rpc.tzbeta.net" : "https://rpc.ghostnet.teztnets.com"; + return network === "mainnet" ? "https://rpc.tzkt.io/mainnet" : "https://rpc.ghostnet.teztnets.com"; } function tzktForNetwork(network) { -- 2.51.2