Actions

Avalanche env

From Chainlink Community Wiki

AvalanceLogo.png

These are example env Variables for your Avalanche Chainlink Node.

#================================================================#
#                     Avalanche OCR Node                         #
#================================================================#

#---------------------------#
#      Universal Vars       #
#---------------------------#
ROOT=/chainlink
LOG_LEVEL=warn
ALLOW_ORIGINS=*
MINIMUM_CONTRACT_PAYMENT_LINK_JUELS=10000000000000

#---------------------------#
#    Chain Specific Vars    #
#---------------------------#
ETH_CHAIN_ID=43114
LINK_CONTRACT_ADDRESS=0x5947BB275c521040051D82396192181b413227A3

#---------------------------#
#       Database Vars       #
#---------------------------#
DATABASE_URL=postgresql://avalancheuser:<password>@<postgreshostname_or_ip>:5432/avalanche_ocr
DATABASE_TIMEOUT=0

#---------------------------#
#       RPC Endpoints       #
#---------------------------#
# Local WS Connection
ETH_URL=ws://avax_rpc_hostname_or_ip:9650/ext/bc/C/ws
# Public RPC Endpoint
#ETH_URL=wss://api.avax.network/ext/bc/C/ws

#---------------------------#
#       Enable HTTPS        #
#---------------------------#
# CHAINLINK_TLS_PORT=0
# SECURE_COOKIES=false
TLS_CERT_PATH=/chainlink/tls/server.crt
TLS_KEY_PATH=/chainlink/tls/server.key

#---------------------------#
#    Gas Payment Tuning     #
#---------------------------#
#ETH_GAS_LIMIT_DEFAULT=500000
ETH_GAS_PRICE_DEFAULT=25000000000
ETH_MIN_GAS_PRICE_WEI=25000000000
ETH_MAX_GAS_PRICE_WEI=1000000000000
GAS_ESTIMATOR_MODE=BlockHistory
MIN_INCOMING_CONFIRMATIONS=1
MIN_OUTGOING_CONFIRMATIONS=1

#---------------------------#
#         OCR Values        #
#---------------------------#
FEATURE_OFFCHAIN_REPORTING=true
OCR_TRACE_LOGGING=true
P2P_LISTEN_PORT=
P2P_ANNOUNCE_IP=
P2P_ANNOUNCE_PORT=
OCR_KEY_BUNDLE_ID=
P2P_PEER_ID=
OCR_TRANSMITTER_ADDRESS=
P2P_BOOTSTRAP_PEERS=

#---------------------------#
#    Explorer Credentials   #
#---------------------------#
EXPLORER_ACCESS_KEY=
EXPLORER_SECRET=
EXPLORER_URL=