Skip to main content

Networks

BBAChain maintains two separate networks to serve different purposes: Mainnet for production use and Testnet for development and testing.

Table of Contents

Network Overview

BBAChain operates two distinct networks:

NetworkPurposeTokensStability
MainnetProduction applicationsReal BBA tokensStable, production-ready
TestnetDevelopment and testingTest tokens (not real)May reset, experimental features

Mainnet

BBAChain Mainnet is the production network where real applications run and real BBA tokens are used.

Characteristics

  • Real Tokens: Tokens issued on Mainnet are real BBA tokens with actual value
  • Production Ready: Stable network for production applications
  • Permanent: Transactions on Mainnet are permanent and cannot be reset
  • High Security: Full security measures and monitoring in place

Use Cases

  • Production applications and services
  • Real token transactions
  • Commercial deployments
  • Applications requiring real economic value
warning

Always use Mainnet for production applications. Testnet tokens have no real value.

Testnet

BBAChain Testnet is a development network where core contributors and developers test new features, network performance, stability, and validator behavior.

Characteristics

  • Test Tokens: Tokens on Testnet are not real and have no monetary value
  • May Reset: The Testnet ledger may be subject to resets during development
  • Token Faucet: Includes a token faucet for airdrops to support application testing
  • Latest Features: Typically runs newer software releases than Mainnet
  • Experimental: New features are tested here before Mainnet deployment

Use Cases

  • Application development and testing
  • Learning and experimentation
  • Testing new features before Mainnet deployment
  • Validator setup and configuration testing
tip

Use Testnet for all development and testing. Only use Mainnet when you're ready for production.

Network Endpoints

Mainnet Endpoints

  • Gossip Entrypoint: mainnet.bbachain.com:8001

    • Used for peer-to-peer communication between validators
    • Required for validator nodes to join the network
  • RPC URL: https://api-mainnet.bbachain.com

    • HTTP/HTTPS endpoint for querying blockchain data
    • Used by applications and wallets to interact with the network
    • Supports JSON-RPC API calls

Testnet Endpoints

  • Gossip Entrypoint: testnet.bbachain.com:8001

    • Used for peer-to-peer communication between validators on Testnet
    • Required for validator nodes to join the Testnet
  • RPC URL: https://api-testnet.bbachain.com

    • HTTP/HTTPS endpoint for querying Testnet blockchain data
    • Used by applications and development tools
    • Supports JSON-RPC API calls

WebSocket Endpoints

WebSocket URLs are computed automatically based on the RPC URL:

  • Mainnet WebSocket: wss://api-mainnet.bbachain.com/
  • Testnet WebSocket: wss://api-testnet.bbachain.com/
info

WebSocket connections are useful for real-time updates and subscriptions to blockchain events.

Choosing a Network

When to Use Mainnet

  • ✅ Production applications
  • ✅ Real token transactions
  • ✅ Commercial deployments
  • ✅ Applications requiring real economic value
  • ✅ Final, production-ready code

When to Use Testnet

  • ✅ Development and testing
  • ✅ Learning BBAChain
  • ✅ Experimenting with new features
  • ✅ Testing validator configurations
  • ✅ Application development before production

Configuration

To configure your application or validator to use a specific network, see the configuration guide.

Example Configuration

{
"network": "testnet",
"rpcUrl": "https://api-testnet.bbachain.com"
}

Or for Mainnet:

{
"network": "mainnet",
"rpcUrl": "https://api-mainnet.bbachain.com"
}

Network Differences

FeatureMainnetTestnet
Token ValueReal BBATest tokens (no value)
Ledger ResetsNeverMay occur
Software VersionStable releasesLatest/experimental
Network StabilityHighMay have issues
Use CaseProductionDevelopment/Testing

Next Steps: