get_json_rpc_env

Documentation for eth_defi.provider.env.get_json_rpc_env function.

get_json_rpc_env(chain)

Get the JSON-RPC URL environment variable based on the chain id.

  • Map chain id to a name and from there to environment variables.

Parameters

chain (int) –

Return type

str