From 8e4cc8b98a457ff68c474b3e58d169ec4e7e4a71 Mon Sep 17 00:00:00 2001 From: 0xngmi <80541789+0xngmi@users.noreply.github.com> Date: Wed, 1 Sep 2021 23:22:20 +0100 Subject: [PATCH] Add section on changing rpc providers --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index d6d9d6509cf5..84af18e59dd8 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,18 @@ If you have any suggestions, want to contribute or want to chat, please join [ou ``` node test.js projects/pangolin/index.js ``` + +## Changing RPC providers +If you want to change RPC providers because you need archive node access or because the default ones don't work well enough you can do so by creating an `.env` file and filling it with the env variables to overwrite: +``` +ETHEREUM_RPC="..." +BSC_RPC="..." +POLYGON_RPC="..." +FANTOM_RPC="..." +ARBITRUM_RPC="..." +OPTIMISM_RPC="..." +XDAI_RPC="..." +HARMONY_RPC="..." +``` + +The name of each rpc is `{CHAIN-NAME}_RPC`, and the name we use for each chain can be found [here](https://github.com/DefiLlama/defillama-sdk/blob/master/src/general.ts#L33)