Search results
++++++++++++++++++++++++++++++++
📂 Reference > Deployment Files

secrets.env

The secrets.env file is bundled with a config.json file and contains the secrets that the respective Airnode deployments will need. All variables defined in a secrets.env file will be available in the config.json file via variable interpolation (e.g. ${VARIABLE_NAME}).

There are few pieces of data that are highly recommend to be provided via variables. The variable names shown can be adjusted to anything desired. Just be sure to change the correlating interpolation value in config.json.

Variable nameconfig.json field nameDescription
AIRNODE_WALLET_MNEMONICnodeSettings.airnodeWalletMnemonicThe wallet mnemonic that will be used by the Airnode
CHAIN_PROVIDER_URLchains[].providers.<name>.urlThe blockchain provider url
SS_MY_API_KEYapiCredentials[].securitySchemeValueA security scheme value
HEARTBEAT_URLnodeSettings.heartbeat.urlThe URL to make the heartbeat request to
HEARTBEAT_API_KEYnodeSettings.heartbeat.apiKeyThe API key to authenticate against the heartbeat URL
HEARTBEAT_IDnodeSettings.heartbeat.idThe Airnode heartbeat ID for accounting purposes
HTTP_GATEWAY_API_KEYnodeSettings.httpGateway.apiKeyThe API key to authenticate against the HTTP gateway
HTTP_SIGNED_DATA_GATEWAY_API_KEYnodeSettings.httpSignedDataGateway.apiKeyThe API key to authenticate against the signed data HTTP gateway
GCP_PROJECT_IDnodeSettings.cloudProvider.projectId(GCP only) The GCP project ID for deployment

Below is an example of secrets.env.

  • Variable names cannot contain dashes (-) or start with a number.
AIRNODE_WALLET_MNEMONIC="achieve climb couple wait accident symbol spy blouse reduce foil echo label"
CHAIN_PROVIDER_URL="https://mainnet.infura.io/v3/5122f3ff104f30f21412aa38fd143d53"

SS_MY_API_KEY="FRACZKMH4F32BZ8X5uTd"

HEARTBEAT_API_KEY="d714a900-3b9e-4e4d-8eae-756ef06a8836"
HEARTBEAT_ID="916d3ec80fda"
HEARTBEAT_URL="https://your.heartbeat.service.io/airnode"

HTTP_GATEWAY_API_KEY="441ffc41-3c8b-44b9-a689-63b500fd17da"
HTTP_SIGNED_DATA_GATEWAY_API_KEY="58b0c6d6-b250-4f2e-b9ed-700655d1c8ae"

# GCP only
GCP_PROJECT_ID="my-gcp-airnode-project-01"
📂 Reference > Deployment Files

secrets.env

The secrets.env file is bundled with a config.json file and contains the secrets that the respective Airnode deployments will need. All variables defined in a secrets.env file will be available in the config.json file via variable interpolation (e.g. ${VARIABLE_NAME}).

There are few pieces of data that are highly recommend to be provided via variables. The variable names shown can be adjusted to anything desired. Just be sure to change the correlating interpolation value in config.json.

Variable nameconfig.json field nameDescription
AIRNODE_WALLET_MNEMONICnodeSettings.airnodeWalletMnemonicThe wallet mnemonic that will be used by the Airnode
CHAIN_PROVIDER_URLchains[].providers.<name>.urlThe blockchain provider url
SS_MY_API_KEYapiCredentials[].securitySchemeValueA security scheme value
HEARTBEAT_URLnodeSettings.heartbeat.urlThe URL to make the heartbeat request to
HEARTBEAT_API_KEYnodeSettings.heartbeat.apiKeyThe API key to authenticate against the heartbeat URL
HEARTBEAT_IDnodeSettings.heartbeat.idThe Airnode heartbeat ID for accounting purposes
HTTP_GATEWAY_API_KEYnodeSettings.httpGateway.apiKeyThe API key to authenticate against the HTTP gateway
HTTP_SIGNED_DATA_GATEWAY_API_KEYnodeSettings.httpSignedDataGateway.apiKeyThe API key to authenticate against the signed data HTTP gateway
GCP_PROJECT_IDnodeSettings.cloudProvider.projectId(GCP only) The GCP project ID for deployment

Below is an example of secrets.env.

  • Variable names cannot contain dashes (-) or start with a number.
AIRNODE_WALLET_MNEMONIC="achieve climb couple wait accident symbol spy blouse reduce foil echo label"
CHAIN_PROVIDER_URL="https://mainnet.infura.io/v3/5122f3ff104f30f21412aa38fd143d53"

SS_MY_API_KEY="FRACZKMH4F32BZ8X5uTd"

HEARTBEAT_API_KEY="d714a900-3b9e-4e4d-8eae-756ef06a8836"
HEARTBEAT_ID="916d3ec80fda"
HEARTBEAT_URL="https://your.heartbeat.service.io/airnode"

HTTP_GATEWAY_API_KEY="441ffc41-3c8b-44b9-a689-63b500fd17da"
HTTP_SIGNED_DATA_GATEWAY_API_KEY="58b0c6d6-b250-4f2e-b9ed-700655d1c8ae"

# GCP only
GCP_PROJECT_ID="my-gcp-airnode-project-01"
=============================