Complete guide for integrating Base networks into your Bicrypto Ecosystem
This guide shows you how to integrate Base networks (Base Mainnet and Goerli testnet) into your Bicrypto Ecosystem. Base is an EVM-compatible network, so the process is similar to Ethereum, BSC, and Polygon.
Base Mainnet and Goerli testnet are supported. ETH on Base is used for transaction fees. Gas fees are generally lower than Ethereum mainnet.
Add the following Base-specific variables to your .env file:
# Base Networks (mainnet, goerli) - using https://blastapi.io/
BASE_EXPLORER_API_KEY="YOUR_BASE_EXPLORER_API_KEY" # e.g., FADCSQ8K1ZDD384EE4...
BASE_NETWORK="goerli"
BASE_MAINNET_RPC="https://YOUR_MAINNET_RPC_PLACEHOLDER"
BASE_MAINNET_RPC_WSS=""
BASE_GOERLI_RPC="https://YOUR_GOERLI_RPC_PLACEHOLDER"
BASE_GOERLI_RPC_WSS=""
• BASE_EXPLORER_API_KEY: Your API key for Base block explorer
• BASE_NETWORK: Active network (mainnet or goerli)
• RPC/WSS URLs: HTTP and WebSocket endpoints for each network
Sign up at blastapi.io and create a project for Base Mainnet or Goerli. They offer generous monthly call limits for Base networks.
Insert the HTTP (and possibly WSS) URLs into your .env
Base gas fees are generally lower than Ethereum mainnet, but can still vary. Adjust your minimum fees accordingly and monitor network changes.
For testing, set BASE_NETWORK="goerli" and acquire test ETH from Base testnet faucets.