Skip to main content

Set Up a Custom Infura Fallback Key

Gunbot connects to blockchain data without any additional configuration. You can optionally add your own Infura API key to provide extra redundancy during a public node or Etherscan service interruption.

Prerequisites

  • A MetaMask browser extension

Get a Free Infura API Key

  1. Go to Infura and select Sign In.
  2. Select Continue with MetaMask, then connect your MetaMask browser extension.
  3. In the Infura dashboard, find your default project under API Keys.
  4. Copy the API key.

Add the Key in the Gunbot Interface

  1. In the Gunbot interface, open Settings.
  2. Select Notifications & integrations.
  3. Scroll to the Infura section at the bottom of the page.
  4. Paste your key into Infura API key (optional).
  5. Select Save.

The Infura fallback key field at the bottom of Settings > Notifications & integrations

The interface saves the key to config.bot.infura_key automatically.

caution

Keep your Infura API key private. Do not publish or share it, or your config.js file.

How the Fallback Works

Gunbot continues to use its normal blockchain data connection during regular operation. If the primary service becomes unavailable, Gunbot switches to your custom Infura endpoint and logs:

etherscan is down using infura.

Video Guide