Skip to main content

Testing Guide

There are two primary methods for testing GHO: testnet and fork networks

Testnet

GHO is currently available for testing on the Sepolia testnet. You can access the Sepolia V3 testnet market by visiting gho.aave.com or app.aave.com (enter testnet mode in top right corner).

To acquire test GHO, visit the test market from one of links above -> use the faucet tab to acquire any token in the market -> supply these tokens -> borrow GHO

Fork Networks

A fork network takes the state of a blockchain and turns it into a sandbox where you can perform any state modification for free. Fork networks are especially useful when testing scenarios which depend on external contracts that only exist on mainnet, since these contract will exist at the same addresses on the fork network.

Create Fork Network

There are several tools to create a fork network: Tenderly, Foundry, and Hardhat are some of the most notable. When a fork is generated with any of these tools, you will generate an rpc url which you can use in a wallet, application, or script to interact with the fork.

Tenderly is particularly useful for fork testing as it generates a public rpc url, and has a built in dashboard for executing transactions and debugging.

More details on generating fork networks with these tools:

You can acquire GHO on a fork network by impersonating an address with GHO and transferring tokens to your address.

Connect Fork Network to UI

The app.aave.com has variables which can be set via the browser console to enable the UI to connect to a fork network. See this guide for details on how to generate and run these commands.