Use this file to discover all available pages before exploring further.
The relay is configured through environment variables, typically supplied via a .env file at the project root or set directly in the container runtime. The variables below cover the ones you’re most likely to need. The relay supports well over a hundred variables in total; for the complete list with defaults, see docs/configuration.md in the repo.
IP-based rate limiting is disabled by default. Set RATE_LIMIT_DISABLED=false to turn it on; the relay then applies three tiers, each covering a different cost class of method.
Variable
Default
Description
RATE_LIMIT_DISABLED
true
When true, IP-based rate limiting is off. Set to false to enforce the tier limits below.
TIER_1_RATE_LIMIT
100
Max request count per LIMIT_DURATION for the most expensive endpoints.
TIER_2_RATE_LIMIT
800
Max request count per LIMIT_DURATION for moderate-cost endpoints.
TIER_3_RATE_LIMIT
1600
Max request count per LIMIT_DURATION for cheap static-return endpoints.
LIMIT_DURATION
60000
Window length in milliseconds.
DEFAULT_RATE_LIMIT
200
Fallback request limit for methods not assigned a specific tier.
Tune these based on traffic and how much operator HBAR you’re willing to spend on writes.