@@ -61,6 +61,11 @@ PG_APPLICATION_NAME=stacks-blockchain-api
61
61
# the same.
62
62
# STACKS_MEMPOOL_TX_GARBAGE_COLLECTION_THRESHOLD=256
63
63
64
+ # To avoid running unnecessary mempool stats during transaction influx, we use a debounce mechanism for the process.
65
+ # This variable controls the duration it waits until there are no further mempool updates
66
+ # MEMPOOL_STATS_DEBOUNCE_INTERVAL=1000
67
+ # MEMPOOL_STATS_DEBOUNCE_MAX_INTERVAL=10000
68
+
64
69
# If specified, an http server providing profiling capability endpoints will be opened on the given port.
65
70
# This port should not be publicly exposed.
66
71
# STACKS_PROFILER_PORT=9119
@@ -122,34 +127,20 @@ STACKS_NODE_TYPE=L1
122
127
# Override the default file path for the proxy cache control file
123
128
# STACKS_API_PROXY_CACHE_CONTROL_FILE=/path/to/.proxy-cache-control.json
124
129
125
- # Enable token metadata processing. Disabled by default.
130
+ # Enable Rosetta endpoints.
131
+ # STACKS_API_ENABLE_ROSETTA=1
132
+
133
+ # Enable FT metadata processing for Rosetta operations display. Disabled by default.
126
134
# STACKS_API_ENABLE_FT_METADATA=1
127
- # STACKS_API_ENABLE_NFT_METADATA=1
128
-
129
- # If token metadata processing is enabled, this variable determines how the API reacts to metadata processing failures.
130
- # When strict mode is enabled, any failures caused by recoverable errors will be retried indefinitely. Otherwise,
131
- # the API will give up after `STACKS_API_TOKEN_METADATA_MAX_RETRIES` is reached for that smart contract.
132
- # STACKS_API_TOKEN_METADATA_STRICT_MODE=1
133
-
134
- # Maximum number of times we'll try processing FT/NFT metadata for a specific smart contract if we've failed
135
- # because of a recoverable error.
136
- # Only used if `STACKS_API_TOKEN_METADATA_STRICT_MODE` is disabled.
137
- # STACKS_API_TOKEN_METADATA_MAX_RETRIES=5
138
-
139
- # Controls the token metadata error handling mode. The possible values are:
140
- # * `warning`: If required metadata is not found, the API will issue a warning and not display data for that token.
141
- # * `error`: If required metadata is not found, the API will throw an error.
142
- # If not specified or any other value is provided, the mode will be set to `warning`.
143
- # STACKS_API_TOKEN_METADATA_ERROR_MODE=warning
144
135
145
- # Configure a script to handle image URLs during token metadata processing.
146
- # This example script uses the `imgix.net` service to create CDN URLs.
147
- # Must be an executable script that accepts the URL as the first program argument
148
- # and outputs a result URL to stdout.
149
- # STACKS_API_IMAGE_CACHE_PROCESSOR=./config/ token-metadata-image-cache-imgix.js
150
- # Env vars needed for the above sample `imgix` script:
151
- # IMGIX_DOMAIN=https://<your domain>.imgix.net
152
- # IMGIX_TOKEN=<your token>
136
+ # The Rosetta API endpoints require FT metadata to display operations with the proper `symbol` and
137
+ # `decimals` values. If FT metadata is enabled, this variable controls the token metadata error
138
+ # handling mode when metadata is not found.
139
+ # The possible values are:
140
+ # * `warning`: The API will issue a warning and not display data for that token.
141
+ # * `error`: The API will throw an error. If not specified or any other value is provided, the mode
142
+ # will be set to `warning`.
143
+ # STACKS_API_TOKEN_METADATA_ERROR_MODE=warning
153
144
154
145
# Web Socket ping interval to determine client availability, in seconds.
155
146
# STACKS_API_WS_PING_INTERVAL=5
0 commit comments