Multi-Relay Support

Validators have two relay configuration options when using ETHGas:

  1. Multi-relay: Connect to any relay, with additional configuration.

  2. ETHGas relays only: Connect to only ETHGas relays.

1. Multi-relay

To use any relay with a validator registered to ETHGas, additional configuration is required. The fee recipient for the validators using ETHGas must be set to the ETHGasPool contract address. Then, in the ETHGas commit-boost module configuration file, your payout address needs to be set.

By setting your fee recipient on your validator clients, multi-relay support will automatically be enabled. Payments will still be made directly to your payout address in the block the validator proposes.

1

Set the ETHGas payoutAddress in config.toml

The payout_address should be set to the address where you want your rewards paid out.

Then re-run the ETHGas commit boost module to register this change.

2

Set the ETHGasPool contract as the validator fee recipient

This should be configured on the validator and beacon clients.

3

Add additional relays

Relays can be added to the config.toml using the following format:

  • The configuration options enable_timing_games, target_first_request_ms and frequency_get_header_ms are set as recommended defaults. If those default settings are not included, it may lead to reduced validator performance.

  • You do not have to use any ETHGas relays when using the multi-relay configuration, you can use any relay.

circle-info

Currently, multi-relay configuration only supports a single ETHGas payoutAddress so it is not compatible with multiplexed validator setups where different validators require different fee recipient addresses.

This is being actively developed and will be available soon.

2. ETHGas relays only.

If a validator is only connected to only ETHGas relays, then a simplified configuration can be used.

2

Configure ETHGas commit-boost module to use only the ETHGas relay

Ensure that only $$-relay.ethgas.com relays are set in the config.toml file.

FAQ

chevron-rightDo I have to use ETHGas relays?hashtag

No. If you configure your validator clients for multi-relay support then you do not need to use any ETHGas relays. However, we recommend that you do use ETHGas relays to maximize your block reward potential.

chevron-rightHow can I confirm that my validators are successfully registered to ETHGas?hashtag

You can use the GET /api/v1/user/validators API to view all your registered validators.

https://developers.ethgas.com/?http#get-api-v1-user-validatorsarrow-up-right

chevron-rightWhat happens if I forget to set the payoutAddress in the ETHGas PBS module?hashtag

If you do not set a payoutAddress, any rewards you accrue will be held in your ETHGas account. This account is linked to the address you used to register your validators to ETHGas.

If you later set the payoutAddress through the ETHGas PBS module, then any accrued payments will automatically be paid out to that address.

Alternatively, you can manually withdraw the rewards from the ETHGas apparrow-up-right or directly using the APIarrow-up-right.

chevron-rightWhere can I confirm the ETHGas pool contract address?hashtag

Last updated