You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid collecting or claiming query fees below a certain threshold
(e.g. below the cost of the two transactions), the following configuration
option can be used.
Environment Variable
CLI Argument
Value
INDEXER_AGENT_REBATE_CLAIM_THRESHOLD
--rebate-claim-threshold
Minimum rebate (in GRT) received for an allocation to claim (Default: 200)
INDEXER_AGENT_REBATE_CLAIM_BATCH_THRESHOLD
--rebate-claim-batch-threshold
Minimum total rebates (in GRT) before a batched claim is processed (Default: 2000)
INDEXER_AGENT_VOUCHER_EXPIRATION
--voucher-expiration
Time (in seconds) to permanently delete vouchers with too few query fees (Default: 2160)
get the @testnetindexer role in the #roles channel,
use the #testnet-fauceet channel to obtain testnet GRT.
Approving And Staking
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-rinkeby-node> \
contracts graphToken approve --account 0x2d44C0e097F6cD0f514edAC633d82E01280B4A5c --amount <grt>
Afterwards, stake this amount:
git clone https://github.com/graphprotocol/contracts
cd contracts
npm install # if you haven't done this before
./cli/cli.ts -m <indexer-mnemonic> -p <ethereum-rinkeby-node> \
contracts staking stake --amount <grt>
Setting An Operator
To set an operator for your testnet indexer, you can use the contracts CLI as follows.
This is similar to using Remix, except it's easier.
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-rinkeby-node> \
contracts staking setOperator --operator <operator-address> --allowed true
In order to avoid collecting or claiming query fees below a certain threshold
(e.g. below the cost of the two transactions), the following configuration
option can be used.
Environment Variable
CLI Argument
Value
INDEXER_AGENT_REBATE_CLAIM_THRESHOLD
--rebate-claim-threshold
Minimum rebate (in GRT) received for an allocation to claim (Default: 200)
INDEXER_AGENT_REBATE_CLAIM_BATCH_THRESHOLD
--rebate-claim-batch-threshold
Minimum total rebates (in GRT) before a batched claim is processed (Default: 2000)
INDEXER_AGENT_VOUCHER_EXPIRATION
--voucher-expiration
Time (in seconds) to permanently delete vouchers with too few query fees (Default: 2160)