Configuration
Last updated
Last updated
Configurations are only stored locally. RPCHub will route your requests based on the configurations.
Users can setup the configurations by either web explorer or posting raw configurations in CLI.
You can only get access to the configurations when the RPCHub is running.
Before proceeding, we suggest that you check the reference to better understand the parameter settings of RPChub,
We provide a user-friendly interface with web explorer.
Go to https://ag-cfg.rpchub.io/
Fill with the aggregator management endpoint http://localhost:8012 and password 123456
After login, there is the configuration console. On this page, you can perform the following settings.
It is recommended to set the password as soon as possible. Please note that your password is stored in your local profile. If you forget your password, you won't be able to get access to the configurations. To configure, you have to start over from Installation and run and configure from default.
You can either add a new RPC or edit an existing RPC. In the popup tab, chose the chain, input endpoint name, endpoint url and weight.
On each RPC card, you can delete the RPC, or switch the "Read Only" and "Disable"
Here you can set the proxy address, request timeout, request max retries.
The phishing database is a feature to prevent users from interacting with suspicious addresses. A user can add any phishing DB url on his own behalf. RPCHub will stop the request if the payload contains any address in the added database.
To find the localhost endpoint for a specific chain, simply click the chain name and the endpoint will appear below the chains list.
CLI provides more flexible configurations, including password reset and adding arbitry chains.
To set the configuration of the aggregator, you must know the format of the file first. To show the current configurations after the first run,
The response payload should be like,
Parameters are explained in the "Configure With Web Explorer" part. Edit them as your wish.
If you want to add or edit an RPC endpoint, just compose following this format,
And insert into or replace one in the payload. Then use the following command to post the entire payload back to the configuration,
The new configurations should work after restart RPCHub.
Here is an example to set the configuration to use RPCHub for Arbitrum (2 endpoints) and BSC (1 endpoint),
Stop RPCHub.
Delete the configuration directory,
Start RPCHub again.
Configurations will be reset including the password.