FAQ

Frequently Asked Questions

How to set env variables?

To use env variables in erpc.yaml (opens in a new tab), follow these steps:

  1. Set env variables: Define the env variables in your system or shell before running your application:
export ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/YOUR_INFURA_KEY
  1. Use placeholders in config: Add placeholders in your config file where you want the env variables to be used:
...
 
 upstreams:
      - endpoint: ${ETHEREUM_RPC_URL}

How to disable caching?

To disable caching, set evmJsonRpcCache (opens in a new tab) to null in your configuration:

...
 
database:
  evmJsonRpcCache: ~