The Graph Network's testnet is on Goerli, and network information can be found at https://testnet.thegraph.com/explorer/network.
See networks/testnet.md for the latest releases & configuration information.
In order to participate in the testnet, you'll need Goerli ETH and GRT. To be eligible for testnet GRT, you'll need to
- join The Graph Discord,
- get the
@testnetindexer
role in the#roles
channel, - use the
#testnet-goerli-faucet
channel to obtain testnet GRT.
The Graph Network testnet is open for everyone to participate in as an indexer. The only requirement is a minimum stake of 100k testnet GRT.
The Graph Explorer provides an easy way to approve and stake your GRT as an indexer via a web GUI.
- Navigate to the testnet explorer
- Login with Metamask and select the
Goerli
network - Navigate to your profile (click your address/avatar at top right)
- Select the
Indexing
tab and hit theStake
button - Follow the directions on the staking screen to stake the desired amount
To approve your testnet GRT to be spent through the staking contract, first approve it in the GRT contract:
git clone https://github.com/graphprotocol/contracts
cd contracts
# If you haven't done this before:
npm install
npm run compile
./cli/cli.ts -m <indexer-mnemonic> -p <ethereum-goerli-node> \
contracts graphToken approve --account 0x35e3Cb6B317690d662160d5d02A5b364578F62c9 --amount <grt>
Afterwards, stake this amount:
./cli/cli.ts -m <indexer-mnemonic> -p <ethereum-goerli-node> \
contracts staking stake --amount <grt>
- Navigate to the testnet explorer
- Login with Metamask and select the
Goerli
network - Navigate to your settings page (click profile dropdown at top right and select ⚙️
Settings
) - Navigate to the
Operators
settings (clickOperators
button) - Click
+
to add your operator wallet address - Follow instructions to submit transaction
./cli/cli.ts -m <indexer-mnemonic> -p <ethereum-goerli-node> \
contracts staking setOperator --operator <operator-address> --allowed true
You are now ready to set up your testnet indexer, visit networks/testnet.md for configuration information.