PG_HOST=127.0.0.1 PG_PORT=5490 PG_USER=postgres PG_PASSWORD=postgres PG_DATABASE=stacks_blockchain_api PG_SCHEMA=public PG_SSL=false # Limit to how many concurrent connections can be created, defaults to 10 # See https://node-postgres.com/api/pool # PG_CONNECTION_POOL_MAX=10 # The connection URI below can be used in place of the PG variables above, # but if enabled it must be defined without others or omitted. # PG_CONNECTION_URI= # Enable to have stacks-node events streamed to a file while the application is running # STACKS_EXPORT_EVENTS_FILE=/tmp/stacks-events.tsv # Initializes the API in read-only mode i.e. without an event server that listens to events from a node and writes them # to the local database. The API will only read data from the PG database specified above to respond to requests. # STACKS_READ_ONLY_MODE=true # If specified, an http server providing profiling capability endpoints will be opened on the given port. # This port should not be publicly exposed. # STACKS_PROFILER_PORT=9119 STACKS_CORE_EVENT_PORT=3700 STACKS_CORE_EVENT_HOST=127.0.0.1 STACKS_BLOCKCHAIN_API_PORT=3999 STACKS_BLOCKCHAIN_API_HOST=127.0.0.1 STACKS_CORE_RPC_HOST=127.0.0.1 STACKS_CORE_RPC_PORT=20443 # STACKS_CORE_PROXY_HOST=127.0.0.1 # STACKS_CORE_PROXY_PORT=20443 # Configure a path to a file containing additional stacks-node `POST /v2/tranascation` URLs for the /v2 proxy to mutlicast. # The file should be a newline-delimited list of URLs. # STACKS_API_EXTRA_TX_ENDPOINTS_FILE=./config/extra-tx-post-endpoints.txt # STACKS_FAUCET_NODE_HOST= # STACKS_FAUCET_NODE_PORT= ## configure the chainID/networkID; testnet: 0x80000000, mainnet: 0x00000001 STACKS_CHAIN_ID=0x00000001 BTC_RPC_HOST=http://127.0.0.1 BTC_RPC_PORT=18443 BTC_RPC_USER=btc BTC_RPC_PW=btc BTC_FAUCET_PK=29c028009a8331358adcc61bb6397377c995d327ac0343ed8e8f1d4d3ef85c27 # The contracts used to query for inbound transactions TESTNET_SEND_MANY_CONTRACT_ID=STR8P3RD1EHA8AA37ERSSSZSWKS9T2GYQFGXNA4C.send-many-memo MAINNET_SEND_MANY_CONTRACT_ID=SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo # Enable debug logging # STACKS_API_LOG_LEVEL=debug # Directory containing Stacks 1.0 BNS data extracted from https://storage.googleapis.com/blockstack-v1-migration-data/export-data.tar.gz # BNS_IMPORT_DIR=/extracted/export-data-dir/ # Used to run the API without a stacks-node or postgres connection. # In this mode, only the given rosetta endpoints are supported: # https://www.rosetta-api.org/docs/node_deployment.html#offline-mode-endpoints . # STACKS_API_OFFLINE_MODE=1 # Override the default file path for the proxy cache control file # STACKS_API_PROXY_CACHE_CONTROL_FILE=/path/to/.proxy-cache-control.json # Enable token metadata processing. Disabled by default. # STACKS_API_ENABLE_FT_METADATA=1 # STACKS_API_ENABLE_NFT_METADATA=1 # Configure a script to handle image URLs during token metadata processing. # This example script uses the `imgix.net` service to create CDN URLs. # Must be an executable script that accepts the URL as the first program argument # and outputs a result URL to stdout. # STACKS_API_IMAGE_CACHE_PROCESSOR=./config/token-metadata-image-cache-imgix.js # Env vars needed for the above sample `imgix` script: # IMGIX_DOMAIN=https://.imgix.net # IMGIX_TOKEN= # Specify max number of STX address to store in an in-memory LRU cache (CPU optimization). # Defaults to 50,000, which should result in around 25 megabytes of additional memory usage. # STACKS_ADDRESS_CACHE_SIZE=10000