# Детальний Гайд по Тестовій Мережі Ethereum Goerli 2025
Цей посібник розглядає функціональність тестової мережі Goerli, яка була ключовою платформою для розробки та тестування смарт-контрактів в екосистемі Ethereum. Стаття охоплює технічні характеристики мережі, включаючи перехід на Proof-of-Stake, методи отримання тестових токенів через офіційні faucet-сервіси та інтеграцію з MetaMask. Матеріал описує практичне застосування Goerli для тестування DEX-протоколів, DeFi-додатків та симуляції користувацьких сценаріїв без фінансових ризиків. Гайд містить пошагові інструкції по розгортанню контрактів через Hardhat, Remix та Etherscan для аналізу транзакцій. Незважаючи на витіснення Goerli мережами Sepolia та Holesky, його вивчення залишається важливим для розуміння еволюції тестових мереж Ethereum та практик безпечної розробки блокчейн-додатків.
What is Goerli Testnet?
Test networks, commonly referred to as testnets, are an integral part of the Ethereum ecosystem. They provide developers, traders, and blockchain enthusiasts with a secure environment for experimentation, testing smart contracts, and exploring decentralised applications (dApps) without risking real funds. Among the various Ethereum test networks, Goerli Testnet held a special place due to its reliability, community support, and successful transition to the Proof-of-Stake (PoS) consensus mechanism. Although Goerli was deprecated in recent years and replaced with more modern networks such as Holesky and Sepolia, studying it remains valuable for understanding the evolution of Ethereum testnets and their role in blockchain solution development.
Ethereum Testnet: Purpose and Applications
Ethereum test networks are isolated blockchain networks that mimic the functionality of the main Ethereum network (Mainnet) but use test tokens with no real financial value. They serve several key functions:
- Smart Contract Testing: Developers can deploy and verify code in a secure environment without risking real funds. This is particularly important for complex contracts used in decentralised finance (DeFi) or non-fungible token (NFT) marketplaces.
- Protocol Update Verification: Testnets allow simulation of major Ethereum upgrades, such as the transition to Proof-of-Stake, implementation of sharding, or scalability improvements.
- Learning and Experimentation: Beginners can learn blockchain fundamentals, including wallet setup, transaction execution, and dApp interaction, without financial risk.
- Real-World Scenario Simulation: Test networks replicate Mainnet conditions, enabling testing of gas fees, transaction speeds, and user behaviour under various circumstances.
Goerli Testnet, launched in 2018, was designed with emphasis on stability and community support. It became one of the most popular testnets due to its compatibility with development tools and conditions closely resembling Mainnet. Despite being replaced by Holesky and Sepolia in recent years, its historical significance remains relevant, particularly for understanding Ethereum's transition to PoS and the development of tools for developers.
Why Goerli Stood Out Among Other Testnets
Goerli Testnet distinguished itself from other Ethereum testnets such as Ropsten, Rinkeby, Kovan, and Sepolia for several reasons:
- Transition to Proof-of-Stake: Goerli became the first testnet to successfully transition to the PoS consensus mechanism in 2022 as part of the merger with the Prater Beacon Chain. This made it a key tool for testing Ethereum 2.0-related updates and preparing for the network's major transition.
- Community Support: Goerli was created as an open-source project supported by a broad community of validators, ensuring high stability and protection against attacks such as spam transactions, which had plagued other testnets like Ropsten.
- Wide Compatibility: Goerli supported integration with popular development tools including MetaMask, Etherscan, Remix, and Hardhat, making it the preferred choice for developers. The Goerli Etherscan block explorer provided detailed information about transactions and smart contracts, simplifying debugging.
- Test Token Availability: Through faucets such as goerlifaucet.com, users could easily obtain test ETH, facilitating testing and experimentation.
- Realistic Mainnet Simulation: Goerli offered conditions closely resembling the main network, including gas fee structures and network behaviour, allowing developers to test applications in realistic scenarios.
However, as the Ethereum ecosystem evolved, Goerli became less relevant. In recent years, it was replaced by Holesky Testnet, which became the primary choice for testing validation and staking, and Sepolia, now used for application development. Nevertheless, lessons learned from working with Goerli remain valuable for understanding testnets and their role in blockchain technology development.
Technical Features of Goerli
Consensus Mechanism: Proof-of-Stake
Initially, Goerli Testnet used the Proof-of-Authority (PoA) consensus mechanism, where validators were selected from trusted community members. This ensured high network stability but limited validation access to a wider audience. In 2022, Goerli successfully transitioned to Proof-of-Stake as part of the merger with the Prater Beacon Chain, marking an important step in preparing Ethereum for its major network upgrade.
The transition to PoS brought several key advantages:
- Energy Efficiency: Unlike Proof-of-Work (PoW), PoS significantly reduced energy consumption, making the network more environmentally friendly and aligned with global sustainability trends.
- Validator Accessibility: After transitioning to PoS, any user with sufficient test ETH could become a validator, increasing network decentralisation and attracting more participants.
- Realistic Mainnet Simulation: PoS enabled developers to test applications under conditions closely resembling Mainnet after the network upgrade, including staking behaviour and transaction processing.
- Staking Support: Goerli provided the ability to test staking mechanisms, which was particularly important for DeFi protocols and other applications utilising PoS.
This transition made Goerli a key tool for developers testing applications related to Ethereum 2.0, including new features such as sharding, improved scalability, and transaction optimisation.
ETH Faucet Support
Faucets are services that distribute test ETH for use on testnets. Goerli supported several reliable faucets, making it accessible to a wide range of users, from beginners to professional developers. Among the most popular faucets were:
- Alchemy Goerli Faucet: One of the most convenient and reliable services, providing up to 0.2 ETH every 24 hours after email registration. This faucet was widely used due to its simple interface and stable operation.
- Paradigm MultiFaucet: A service supporting multiple testnets, including Goerli. Users only needed to enter their wallet address to receive test tokens, making the process quick and convenient.
- Mudit Goerli Faucet: This faucet required publishing a tweet with the wallet address to receive up to 37.5 ETH every 9 days, which was convenient for large projects requiring significant amounts of test tokens.
- QuickNode Faucet: Provided small amounts of test ETH (up to 0.1 ETH) with minimal requirements, suitable for quick testing.
These faucets ensured easy access to test tokens, allowing developers and testers to conduct experiments without financial costs. However, users needed to exercise caution to avoid phishing sites posing as legitimate faucets, as such threats were common in the ecosystem.
Goerli Testnet was fully compatible with major Ethereum development tools, making it an ideal choice for creating and testing decentralised applications:
- Etherscan: The Goerli block explorer provided detailed information about transactions, smart contracts, and addresses. Developers could track contract status, analyse gas costs, and identify errors in real-time. This was particularly useful for debugging complex applications.
- Remix: An online IDE for writing, compiling, and deploying smart contracts in Solidity. Remix supported direct connection to Goerli through MetaMask, simplifying the testing process even for beginners.
- Hardhat: A powerful development environment for Ethereum that allowed compilation, testing, and deployment of smart contracts. Hardhat supported Goerli configuration through configuration files, enabling process automation and simplifying project management.
- Truffle: A popular development tool supporting Goerli and providing libraries and plugins for simplifying project work. Truffle was particularly useful for teams working on large dApps.
- Foundry: A modern Solidity development tool that also supported Goerli and offered high performance for testing and deployment.
These tools provided a complete development cycle, from code writing to transaction analysis, making Goerli a versatile platform for testing. Compatibility with such tools allowed developers to rapidly create prototypes, conduct testing, and prepare applications for Mainnet deployment.
How to Obtain ETH on Goerli Testnet
Through Official Faucets
Obtaining test ETH through an official faucet is the simplest way to begin working with Goerli. Here is a step-by-step guide for using the Alchemy Goerli Faucet:
-
Install MetaMask:
- Download MetaMask as a browser extension (Chrome, Firefox, Edge) or mobile application.
- Create a new wallet or import an existing one by following the instructions.
- Enable test network display in MetaMask settings: Settings → Advanced → Show Test Networks.
- Select Goerli Testnet from the network dropdown menu at the top of the interface.
-
Visit the Faucet Website:
- Go to the official Alchemy Goerli Faucet website.
- Click "Connect Wallet" and connect MetaMask following the prompts.
- Register by providing your email address to gain faucet access. Registration helps prevent abuse and spam.
-
Request Tokens:
- Copy your MetaMask wallet address by clicking on the address at the top of the interface.
- Paste the address into the faucet website field.
- Click "Send Me ETH" and wait for test tokens (typically 0.02 to 0.2 ETH depending on current limits) to be credited within a few minutes.
-
Balance Verification:
- Open MetaMask and confirm that test ETH has been credited to your wallet.
- For additional verification, use the Goerli Etherscan block explorer to track the transaction and confirm its completion.
Tip: If one faucet's limits are exhausted or tokens are not credited, try alternative faucets such as Paradigm MultiFaucet or QuickNode Faucet. Always verify URLs to ensure you are using a legitimate service, and avoid providing personal information such as private keys.
Via Alchemy or Infura
For more advanced users working with large projects or automated tests, connecting to Goerli through Alchemy or Infura services provides additional capabilities:
-
Alchemy:
- Register on the official Alchemy website and create a new project by selecting Goerli Testnet.
- Obtain an API key and RPC endpoint for connecting to the Goerli network.
- Configure MetaMask or development tools such as Hardhat to use this endpoint.
- Use Alchemy's built-in faucet to obtain test ETH (up to 0.2 ETH per day).
- Alchemy also provides analytical tools for tracking transactions and network performance, useful for large-scale projects.
-
Infura:
- Register on the Infura website and create a project for Goerli Testnet.
- Obtain the RPC endpoint for connecting to the network.
- Configure your wallet or development tools to use this endpoint.
- Since Infura does not provide a built-in faucet, use third-party services such as Alchemy Goerli Faucet or Paradigm MultiFaucet to obtain test ETH.
- Infura provides stable connectivity, making it suitable for automated testing and large projects.
These services are ideal for developers requiring reliable and scalable connection to Goerli for testing complex applications or automating processes.
MetaMask is the primary wallet for working with Goerli Testnet, providing convenient network access and simplifying interaction with dApps. Here is how to configure the integration:
-
Adding Goerli Network:
- Open MetaMask and enable test networks in settings (Settings → Advanced → Show Test Networks).
- If Goerli Testnet is not in the list of available networks, add the network manually by specifying these parameters:
- Network Name: Goerli Testnet
- RPC URL: use an endpoint from Alchemy or Infura
- Chain ID: 5
- Currency Symbol: ETH
- Block Explorer URL: Goerli Etherscan block explorer address
- Save settings for the network to appear in the dropdown menu.
-
Obtaining Test ETH:
- Copy your MetaMask wallet address by clicking on the address at the top of the interface.
- Visit a faucet, such as Alchemy Goerli Faucet, and request test tokens by entering your wallet address.
- Check your MetaMask balance after token credit (usually takes a few minutes).
-
Testing Transactions:
- Use MetaMask to send test ETH to other addresses or interact with smart contracts.
- Configure gas parameters (low, standard, high) to simulate Mainnet conditions and check how transactions behave at different fee levels.
- Track transactions through the Goerli Etherscan block explorer to analyse their status and gas costs.
MetaMask simplifies interaction with Goerli, making it accessible to both beginners and professional developers working on complex projects.
Using Goerli in Development
Smart Contract Testing
Goerli Testnet was widely used for testing smart contracts due to its compatibility with development tools and realistic conditions approximating Mainnet. Developers could follow these steps:
-
Writing Smart Contracts:
- Use an online IDE such as Remix to write contracts in Solidity. Remix allows creation of simple and complex contracts such as ERC-20 tokens, NFTs, or DeFi protocols.
- Alternatively, use Hardhat or Truffle for local testing and project management.
-
Deployment on Goerli:
- Connect MetaMask to Goerli Testnet by selecting the network from the dropdown menu.
- In Remix, select the "Injected Web3" environment to connect to MetaMask and deploy the contract using test ETH.
- In Hardhat, configure Goerli connection through the configuration file, specifying the RPC URL and wallet private key.
- Ensure your wallet has sufficient test ETH to cover deployment fees.
-
Contract Testing:
- Execute contract function calls through the Remix interface or Hardhat scripts.
- Use the Goerli Etherscan block explorer to verify transaction status, gas costs, and contract state.
- Simulate various scenarios such as high gas fees, network congestion, or incorrect input data to identify potential errors.
Goerli allowed developers to verify contract reliability under conditions closely resembling Mainnet, minimising risks during Mainnet deployment. For example, testing a DeFi protocol contract could include verifying interest calculations, liquidity handling, and protection against reentrancy attacks.
DEX and DeFi Protocol Testing
Goerli supported testing of decentralised exchanges (DEX) and DeFi protocols such as Uniswap, Aave, and Compound, making it a valuable tool for developers. Here is how this could be implemented:
-
DEX Connection:
- Find the testnet version of a DEX, such as Uniswap on Goerli, available through the official interface with Goerli selected.
- Obtain test tokens (ETH, USDT, DAI) through faucets such as Paradigm MultiFaucet or Alchemy Goerli Faucet.
- Execute test operations such as token swaps, liquidity pool additions, or creation of new trading pairs.
- Analyse transactions through the block explorer to verify correct operation execution.
-
DeFi Protocol Testing:
- Connect MetaMask to Goerli and select the testnet version of a DeFi protocol, such as Aave on Goerli.
- Perform actions such as liquidity provision, asset borrowing, or staking using test tokens.
- Verify protocol behaviour including error handling, interest calculations, and interaction with other contracts.
- Use Hardhat or Truffle to automate testing of complex scenarios such as multi-step transactions.
-
Cross-Chain Testing:
- Goerli supported cross-chain protocols such as ZetaChain, enabling testing of omnichain interactions.
- Developers could simulate cross-network transactions, verify compatibility, and analyse smart contract behaviour in cross-chain scenarios.
These capabilities made Goerli an ideal platform for verifying complex DeFi ecosystem interactions, allowing developers to ensure application reliability before Mainnet deployment.
Simulating User Interactions
Goerli provided the ability to model real user scenarios, which was useful for both developers and traders:
- Transaction Sending: Developers could test transaction speed and cost at different gas fee levels. For example, experimenting with low, standard, and high fees to understand how this affects transaction execution under network congestion.
- dApp Interaction: Goerli enabled testing of application interfaces and logic, such as NFT marketplaces, gaming platforms, or DeFi protocols. This included verifying user experience, error handling, and correct transaction execution.
- Error Simulation: Developers could verify smart contract behaviour with incorrect input data, insufficient gas, or network failures to identify vulnerabilities.
For example, a developer could simulate purchasing an NFT on a testnet marketplace using test ETH to ensure the contract correctly handles payment, token transfer, and potential errors such as insufficient funds or incorrect transaction parameters. Such tests helped prepare applications for real Mainnet conditions.
Conclusion
The Role of Testnets in the Ethereum Ecosystem
Test networks such as Goerli, Sepolia, and Holesky play a critical role in Ethereum development:
- Security: Testnets enable identification of vulnerabilities in smart contracts and protocols before Mainnet deployment, reducing the risk of financial loss and attacks.
- Innovation: Developers can experiment with new features such as cross-chain exchanges, DeFi protocols, NFTs, or gaming platforms without financial costs.
- Preparation for Major Upgrades: Goerli was instrumental in testing Ethereum's transition to Proof-of-Stake, preparing the ecosystem for the major 2022 network upgrade.
- Community Education: Testnets provide a safe environment for beginners to learn blockchain technology, dApp interaction, and wallet fundamentals.
With Goerli's replacement by Holesky and Sepolia, the Ethereum ecosystem continues to evolve, providing developers with more modern and efficient testing tools. Holesky, for instance, became the primary choice for testing validation and staking, while Sepolia is suitable for application development.
Recommendations for Developers
- Transition to using Holesky or Sepolia for current testing, as Goerli has been deprecated.
- Use reliable faucets and always verify URLs to avoid phishing sites.
- Configure development tools such as Hardhat, Remix, or Foundry to automate testing and smart contract deployment.
- Test applications under conditions closely resembling Mainnet, including high gas fees, network congestion, and complex user scenarios.
- Experiment with cross-chain protocols to prepare for future Ethereum updates such as sharding or scalability improvements.
- Study the historical significance of Goerli to understand testnet evolution and best practices in blockchain development.
By following these recommendations and understanding the role of testnets in blockchain development, developers can build more reliable and secure applications ready for production deployment.
FAQ
什么是Goerli Testnet?它与以太坊主网有什么区别?
Goerli Testnet是以太坊的测试网络,用于开发者在主网部署前测试智能合约。与主网不同,它使用独立的测试代币,交易成本低廉,主要用于安全实验和调试。
Як розгорнути смарт-контракт у тестовій мережі Goerli?
Встановіть Hardhat та hardhat-etherscan, налаштуйте конфігураційний файл з вашим API ключем Etherscan, розгорніть контракт командою npx hardhat run, а потім верифікуйте його за допомогою npx hardhat verify --network goerli АДРЕСА_КОНТРАКТУ.
Як отримати тестові монети ETH у мережі Goerli?
Використовуйте faucetDAO мост для передачі FDT на Goerli, потім обміняйте FDT на тестові ETH через Uniswap або faucetdao.shop.
Goerli Testnet的RPC端点是什么?如何配置?
Goerli Testnet的RPC端点为 https://goerli.infura.io/v3/。配置时,将此URL添加到应用程序设置中即可连接测试网络。
Відкрийте MetaMask,натисніть на вибір мережі, оберіть «Додати мережу» або «Custom RPC». Введіть: ім'я — Goerli Testnet, RPC URL — https://goerli.infura.io/v3/YOUR_PROJECT_ID. Збережіть налаштування.
Goerli測試網適合哪些開發和測試場景?
Goerli測試網適合智慧合約測試、協議升級驗證、DeFi和NFT開發。開發者可在無資金風險情境下部署和驗證程式碼,支援模擬主網升級場景。
Goerli Testnet上的交易费用是多少?
Goerli Testnet交易费用通常在$0.05至$0.15之间,具体金额因网络状况和Gas费波动而变化。实际费用可能会有所不同。
如何使用Etherscan在Goerli上查看交易和合约?
访问Etherscan Goerli页面,在搜索框中输入交易哈希或合约地址,即可查看详细信息。支持查看交易额、燃气费、合约代码和交互记录等完整数据。
Goerli测试网的性能和稳定性如何?
Goerli测试网性能稳定,交易确认快速,网络运行可靠。但需注意以太坊基金会已宣布计划逐步关闭此测试网,建议开发者逐步迁移至Sepolia等新型测试网络。
开发者在Goerli上测试时需要注意哪些事项?
开发者需升级共识层和执行层客户端,分阶段激活Bellatrix升级。确保节点兼容性,准备好测试环境,注意合并前后的技术变化和API差异。
* Ця інформація не є фінансовою порадою чи будь-якою іншою рекомендацією, запропонованою чи схваленою Gate, і не є нею.