Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
Resolve returns the RPC endpoint URL for a given chain ID.
The platform does not hand out RPC endpoints: /api/chains omits the seeded defaults because some of them embed provider API keys. The caller supplies the endpoint.
Resolution order:
- flagValue (from --rpc-url flag)
- KH_RPC_URL env var
- Config file rpc.<chainID>
- Error if nothing found
Types ¶
Click to show internal directories.
Click to hide internal directories.