Frequently Asked Questions
How to set env variables?
To use env variables in erpc.yaml (opens in a new tab), follow these steps:
- 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
- Use placeholders in config: Add placeholders in your config file where you want the env variables to be used:
erpc.yaml
upstreams:
- endpoint: ${ETHEREUM_RPC_URL}
How to disable caching?
To disable caching, set evmJsonRpcCache
(opens in a new tab) to null
in your configuration:
erpc.yaml
database:
evmJsonRpcCache: ~