Testnet & Mainnet access

Purpose:

  • Testnet = development & QA environment. Use for smart contract testing, UI integration, and before production deployment.

  • Mainnet = production environment; real BUBU tokens, real value.

Best practices:

  • Keep separate wallets/accounts for testnet and mainnet.

  • Deploy and test on testnet thoroughly before deploying to mainnet.

  • Use environment variables to keep RPC URLs and chain IDs separate in your configs.

Example: Hardhat config

module.exports = {
  networks: {
    buburuzaTestnet: {
      url: "https://rpc.buburuza.com",
      chainId: 5456918401,
      accounts: [process.env.DEV_PRIVATE_KEY]
    }
  },
  solidity: "0.8.20"
};

Last updated