diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 1d75a4db3..55601d3a6 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -61,6 +61,7 @@ "developers": "Developers", "buildingOnScroll": "Building on Scroll", "faq": "Frequently Asked Questions", + "faucet": "Testnet ETH Faucet", "developerQuickstart": "Developer Quickstart", "verifyingSmartContracts": "Verifying Smart Contracts", "scrollContracts": "Scroll Contracts", diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index 5c064d34b..59f282566 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -79,6 +79,7 @@ "developers": { "developers": "Desarrolladores", "buildingOnScroll": "Construyendo en Scroll", + "faucet": "Faucet de ETH de Testnet", "developerQuickstart": "Inicio rápido para Desarrolladores", "verifyingSmartContracts": "Verificando Smart Contracts", "scrollContracts": "Contratos de Scroll", diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json index 8c39a62ca..fe090af2a 100644 --- a/public/locales/tr/translation.json +++ b/public/locales/tr/translation.json @@ -79,6 +79,7 @@ "developers": { "developers": "Geliştiriciler", "buildingOnScroll": "Scroll Üzerinde Geliştirmek", + "faucet": "Testnet ETH Musluğu", "developerQuickstart": "Geliştirici Hızlı Başlangıcı", "verifyingSmartContracts": "Akıllı Sözleşmeleri Doğrulama", "scrollContracts": "Scroll Sözleşmeleri", diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 64ef59d47..afe3970de 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -79,6 +79,7 @@ "developers": { "developers": "开发者", "buildingOnScroll": "在 Scroll 上开发", + "faucet": "测试网 ETH 水龙头", "developerQuickstart": "开发者快速入门", "verifyingSmartContracts": "验证智能合约", "scrollContracts": "Scroll 合约", diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 63377b5e9..367315c76 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -10,10 +10,8 @@ export const getSidebar = () => { contents: [ { title: t("sidebar.developers.faq"), url: formatUrl("developers") }, { title: t("sidebar.developers.buildingOnScroll"), url: formatUrl("developers/building-on-scroll") }, - { - title: t("sidebar.developers.scrollContracts"), - url: formatUrl("developers/scroll-contracts"), - }, + { title: t("sidebar.developers.scrollContracts"), url: formatUrl("developers/scroll-contracts") }, + { title: t("sidebar.developers.faucet"), url: formatUrl("developers/faucet") }, { title: t("sidebar.developers.ethereumAndScrollDifferences"), url: formatUrl("developers/ethereum-and-scroll-differences"), diff --git a/src/content/docs/en/developers/faucet.mdx b/src/content/docs/en/developers/faucet.mdx new file mode 100644 index 000000000..ca4d0809f --- /dev/null +++ b/src/content/docs/en/developers/faucet.mdx @@ -0,0 +1,43 @@ +--- +section: developers +date: Last Modified +title: "Testnet ETH Faucet" +lang: "en" +permalink: "developers/faucet" +excerpt: "Learn how to get testnet ETH on Scroll Sepolia testnet." +whatsnext: { "Developer FAQ": "/en/developers/" } +--- + +import Aside from "../../../../components/Aside.astro" + +## Official Scroll Telegram Faucet + +You can request testnet ETH via the official Scroll telegram faucet bot by sending a message to @scroll_up_sepolia_bot who will provide access to the faucet. Once on the faucet telegram group chat, send your wallet address on a `/drop YOUR_ETHEREUM_ADDRESS` command and the bot will automatically send some funds to you. + +## Alternative Methods + +### Sepolia Faucets + +Scroll Testnet runs on Sepolia, you can bridge Sepolia ETH back and forth on the [Scroll Sepolia Bridge](https://portal-sepolia.scroll.io/bridge). + +Here are a few Sepolia faucet apps: + +- [sepoliafaucet.com](https://sepoliafaucet.com) +- [sepolia-faucet.pk910.de](https://sepolia-faucet.pk910.de) +- [QuickNode Faucet](https://faucet.quicknode.com/drip) +- [Chainstack Faucet](https://faucet.chainstack.com) +- [Infura Faucet](https://infura.io/faucet/sepolia) +- [Ethereum Ecosystem Faucets](https://www.ethereum-ecosystem.com/faucets/ethereum-sepolia) + +### Scroll Sepolia Faucets + +If you don't want to interact with the bridge, some faucets directly distribute Scroll Sepolia ETH. + +- [ETH Global](https://ethglobal.com/faucet/scroll-sepolia-534351) +- [HackQuest Faucet](https://www.hackquest.io/en/faucets/534351) +- [QuickNode Scroll Sepolia](https://faucet.quicknode.com/scroll/sepolia) +- [Thirdweb Scroll Sepolia](https://thirdweb.com/scroll-sepolia-testnet) +- [Chainstack Scroll Sepolia](https://faucet.chainstack.com/scroll-sepolia-testnet-faucet) +- [Bware Labs Faucet](https://bwarelabs.com/faucets/scroll-testnet) +- [L2 Faucet](https://www.l2faucet.com/scroll) + diff --git a/src/content/docs/en/developers/index.mdx b/src/content/docs/en/developers/index.mdx index 6517b2e32..233056798 100644 --- a/src/content/docs/en/developers/index.mdx +++ b/src/content/docs/en/developers/index.mdx @@ -62,11 +62,7 @@ Use the following configuration to connect your Ethereum tools to Scroll Sepolia **How do I get testnet ETH on Scroll?** -You can request testnet ETH via the official Scroll telegram faucet bot by sending a message to @scroll_up_sepolia_bot who will provide access to the faucet. Once on the faucet telegram group chat, send your wallet address on a `/drop YOUR_ETHEREUM_ADDRESS` command and the bot will automatically send some funds to you. - -**Is there an alternative way to get testnet ETH?** - -Yes. Please refer to our list of [Unofficial Faucets](https://docs.scroll.io/en/user-guide/faucet/) on both Sepolia and Scroll Sepolia. Remember, you can either receive Scroll Sepolia ETH directly or trough the [Sepolia Testnet Bridge](https://sepolia.scroll.io/bridge). +See our [Testnet ETH Faucet guide](/en/developers/faucet/) for detailed instructions on obtaining testnet ETH on Scroll. ## EVM Compatibility & Infrastructure diff --git a/src/features/redirects/redirects.json b/src/features/redirects/redirects.json index d842916fb..1884e6072 100644 --- a/src/features/redirects/redirects.json +++ b/src/features/redirects/redirects.json @@ -96,7 +96,7 @@ }, { "source": "user-guide/faucet", - "destination": "/community", + "destination": "/en/developers/faucet", "statusCode": 301 }, { diff --git a/src/middleware.ts b/src/middleware.ts deleted file mode 100644 index 2bf2b5325..000000000 --- a/src/middleware.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { MiddlewareHandler } from "astro" - -export const onRequest: MiddlewareHandler = (context, next) => { - const url = new URL(context.request.url) - const pathname = url.pathname - - if ( - pathname.startsWith("/learn") || - pathname.startsWith("/en/learn") || - pathname.startsWith("/es/learn") || - pathname.startsWith("/tr/learn") || - pathname.startsWith("/zh/learn") - ) { - return context.redirect("/technology", 301) - } - - if ( - pathname.startsWith("/user-guide") || - pathname.startsWith("/en/user-guide") || - pathname.startsWith("/es/user-guide") || - pathname.startsWith("/tr/user-guide") || - pathname.startsWith("/zh/user-guide") - ) { - return context.redirect("/community", 301) - } - - return next() -}