From 84fbb2be9c3b2b01709516d7af30a820ae98a35d Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Thu, 14 May 2026 17:46:58 +0300 Subject: [PATCH] Add nft media type fetcher --- setup/env-variables/backend-env-variables.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/env-variables/backend-env-variables.mdx b/setup/env-variables/backend-env-variables.mdx index 9c73eca5..ddd4bab0 100644 --- a/setup/env-variables/backend-env-variables.mdx +++ b/setup/env-variables/backend-env-variables.mdx @@ -236,6 +236,7 @@ Can be set in format `1d` for 1 day, `1h` for 1 hour, `1m` for 1 minute, `1s` or | `INDEXER_DISABLE_REPLACED_TRANSACTION_FETCHER` | If `true`, `Indexer.Fetcher.ReplacedTransaction` fetcher doesn't run. | Version: v6.8.0\+
Default: `false`
Applications: Indexer | | `INDEXER_DISABLE_TOKEN_INSTANCE_ERC_1155_SANITIZE_FETCHER` | If `true`, `erc-1155-sanitize` token instance fetcher doesn't run. Implemented in [#9226](https://github.com/blockscout/blockscout/pull/9226). | Version: v6.2.0\+
Default: `false`
Applications: Indexer | | `INDEXER_DISABLE_TOKEN_INSTANCE_ERC_721_SANITIZE_FETCHER` | If `true`, `erc-721-sanitize` token instance fetcher doesn't run. Implemented in [#9226](https://github.com/blockscout/blockscout/pull/9226). | Version: v6.2.0\+
Default: `false`
Applications: Indexer | +| `INDEXER_DISABLE_TOKEN_INSTANCE_MEDIA_TYPE_FETCHER` | If `true`, token instance media type backfill fetcher is disabled. When disabled, `image_type` and `animation_type` fields will not be populated for existing token instances. Implemented in [#14365](https://github.com/blockscout/blockscout/pull/14365). | Version: master
Default: `false`
Applications: Indexer | | `INDEXER_DISABLE_TOKEN_INSTANCE_REALTIME_FETCHER` | If `true`, `realtime` token instance fetcher doesn't run. | Version: v5.1.4\+
Default: `false`
Applications: Indexer | | `INDEXER_DISABLE_TOKEN_INSTANCE_REFETCH_FETCHER` | If `true`, the Token instance fetcher, which re-fetches NFT collections marked to refetch, doesn't run. Implemented in [#10263](https://github.com/blockscout/blockscout/pull/10263). | Version: v7.0.0\+
Default: `false`
Applications: Indexer | | `INDEXER_DISABLE_TOKEN_INSTANCE_RETRY_FETCHER` | If `true`, `retry` token instance fetcher doesn't run. | Version: v5.1.4\+
Default: `false`
Applications: Indexer | @@ -287,6 +288,8 @@ Can be set in format `1d` for 1 day, `1h` for 1 hour, `1m` for 1 minute, `1s` or | `INDEXER_TOKEN_INSTANCE_ALLOWED_URI_PROTOCOLS` | List of allowed URI protocols (schemes) for requests when fetching token instance metadata. Implemented in [#12102](https://github.com/blockscout/blockscout/pull/12102). | Version: v8.0.0\+
Default: `http,https`
Applications: Indexer | | `INDEXER_TOKEN_INSTANCE_CIDR_BLACKLIST` | List of IP addresses in CIDR format to block when fetching token instance metadata. Example: `"0.0.0.0/32,192.168.0.0/16"`. Implemented in [#12102](https://github.com/blockscout/blockscout/pull/12102). | Version: v8.0.0\+
Default: (empty)
Applications: Indexer | | `INDEXER_TOKEN_INSTANCE_HOST_FILTERING_ENABLED` | If `false`, the URL from which metadata is fetched will not be resolved to an IP address, and the IP address will not be checked against the blacklist. Implemented in [#12102](https://github.com/blockscout/blockscout/pull/12102). | Version: v8.0.0\+
Default: `true`
Applications: Indexer | +| `INDEXER_TOKEN_INSTANCE_MEDIA_TYPE_BATCH_SIZE` | Number of token instances processed per batch by the media type fetcher, which backfills MIME types (`image_type`, `animation_type`) for NFT instances via HTTP HEAD requests to image/animation URLs from metadata. Implemented in [#14365](https://github.com/blockscout/blockscout/pull/14365). | Version: master
Default: `10`
Applications: Indexer | +| `INDEXER_TOKEN_INSTANCE_MEDIA_TYPE_CONCURRENCY` | Max number of concurrent workers resolving media types for token instances. Implemented in [#14365](https://github.com/blockscout/blockscout/pull/14365). | Version: master
Default: `5`
Applications: Indexer | | `INDEXER_TOKEN_INSTANCE_REALTIME_BATCH_SIZE` | Batch size for `realtime` token instance fetcher. Implemented in [#8313](https://github.com/blockscout/blockscout/pull/8313). | Version: v5.2.3\+
Default: `1`
Applications: Indexer | | `INDEXER_TOKEN_INSTANCE_REALTIME_CONCURRENCY` | Concurrency for `realtime` token instance fetcher. Implemented in [#7286](https://github.com/blockscout/blockscout/pull/7286). | Version: v5.1.4\+
Default: `10`
Applications: Indexer | | `INDEXER_TOKEN_INSTANCE_REALTIME_RETRY_ENABLED` | If `true`, `realtime` token instance fetcher will retry once on 404 and 500 error. Implemented in [#10036](https://github.com/blockscout/blockscout/pull/10036). | Version: v6.6.0\+
Default: `false`
Applications: Indexer |