# Fuji Testnet

RelayHub: 0x0321ABDba4dCf3f3AeCf463Def8F866568BC5174 (opens new window)

Forwarder: 0xDFdA581eE8bf25Ade192DE74BcaE0A60b9860B33 (opens new window)

Paymaster: 0x9552C037217B46398B1c928e0e5b086C5f5F4aB3 (opens new window)

# Recommeneded Server configuration

gsn-relay-config.json:

{
  "baseRelayFee": 0,
  "pctRelayFee": 70,
  "relayHubAddress": "0x0321ABDba4dCf3f3AeCf463Def8F866568BC5174",
  "ownerAddress": "<OWNER_ADDRESS>",
  "gasPriceFactor": 1,
  "confirmationsNeeded": 1,
  "ethereumNodeUrl": "https://api.avax-test.network/ext/bc/C/rpc",
  "coldRestartLogsFromBlock": 7857071,
  "registrationBlockRate": 3800,
  "pastEventsQueryMaxPageSize": 2000,
  "maxGasPrice": 1e12,
  "workerMinBalance": 0.1e18,
  "workerTargetBalance": 0.5e18
}

# Recommeneded client configuration

  // add the following fields to your GSNConfig:
  const gsnConfig: Partial<GSNConfig> = {
    relayLookupWindowBlocks: 4000,
    relayRegistrationLookupBlocks: 4000,
    pastEventsQueryMaxPageSize: 2000,
  }
  const gsnProvider = RelayProvider.newProvider({provider: web3Provider, config: gsnConfig})
  await gsnProvider.init()