This application recognizes the following environment variables:
Name | Description | Range/Type | Required? | Default |
---|---|---|---|---|
API_PORT |
HTTP port that the application listens on | 1025 - 65535 | 3000 | |
BLOCKCHAIN_SCAN_INTERVAL_MINUTES |
How many minutes to delay between successive scans of the chain for new accounts (after end of chain is reached) | > 0 | 180 | |
CAPACITY_LIMIT |
JSON string describing capacity limit (per epoch)\n type: 'percentage' 'amount' value: number (may be percentage, ie '80', or absolute amount of capacity). serviceLimit is the max capacity the service itself may use; totalLimit is the threshold of total capacity usage |
JSON (example) | Y | |
CONNECTIONS_PER_PROVIDER_RESPONSE_PAGE |
Number of connection/page to request when requesting provider connections from webhook | > 0 | 100 | |
FREQUENCY_URL |
Blockchain node address | http(s): or ws(s): URL | Y | |
GRAPH_ENVIRONMENT_TYPE |
Graph environment type. | Mainnet|TestnetPaseo | Y | |
HEALTH_CHECK_MAX_RETRIES |
Number of /health endpoint failures allowed before marking the provider webhook service down |
>= 0 | 20 | |
HEALTH_CHECK_MAX_RETRY_INTERVAL_SECONDS |
Number of seconds to retry provider webhook /health endpoint when failing |
> 0 | 64 | |
HEALTH_CHECK_SUCCESS_THRESHOLD |
Minimum number of consecutive successful calls to the provider webhook /health endpoint before it is marked up again |
> 0 | 10 | |
PROVIDER_ACCESS_TOKEN |
An optional bearer token authentication to the provider webhook | string | ||
PROVIDER_ACCOUNT_SEED_PHRASE |
Seed phrase for provider MSA control key | string | Y | |
PROVIDER_BASE_URL |
Base URL for provider webhook endpoints | URL | Y | |
PROVIDER_ID |
Provider MSA ID | integer | Y | |
QUEUE_HIGH_WATER |
Max number of jobs allowed on the 'graphUpdateQueue' before blockchain scan will be paused to allow queue to drain | >= 100 | 1000 | |
REDIS_URL |
Connection URL for Redis | URL | Y | |
WEBHOOK_FAILURE_THRESHOLD |
Number of failures allowing in the provider webhook before the service is marked down | > 0 | 3 | |
WEBHOOK_RETRY_INTERVAL_SECONDS |
Number of seconds between provider webhook retry attempts when failing | > 0 | 10 |