BTB Finance is an Arbitrum Layer 3 chain built using AnyTrust and Arbitrum Orbit technology.
- Chain Name: BTB Orbit
- Chain ID: 91738291
- Consensus: AnyTrust
- Parent Chain: Arbitrum One
- Features:
- Custom token bridge
- Optimized gas settings
- 3-validator AnyTrust setup
- High-performance sequencer
- Node.js v16 or higher
- Access to Arbitrum One RPC
- Three validator addresses
- Sequencer address
- Sufficient ETH in deployer wallet
- Clone the repository
- Copy
.env.example
to.env
- Fill in the required environment variables:
# Network Configuration
ARBITRUM_RPC= # Arbitrum One RPC URL
PRIVATE_KEY= # Deployer wallet private key
# Validator Setup
VALIDATOR_1_ADDRESS= # First validator address
VALIDATOR_2_ADDRESS= # Second validator address
VALIDATOR_3_ADDRESS= # Third validator address
# Sequencer Configuration
SEQUENCER_ADDRESS= # Sequencer address
# Token Bridge (Optional)
L1_TOKEN_ADDRESS= # Address of L1 token to bridge
- Install dependencies:
npm install
- Deploy the complete L3 chain:
npx ts-node scripts/deploy-full-chain.ts
This script will:
- Create the L3 chain
- Configure validators
- Set up the sequencer
- Deploy the token bridge
- Save all deployment information
- Located in
node-config.json
- Defines chain parameters
- Configures AnyTrust settings
- Sets up validator requirements
- Located in
orbit-config.json
- Defines chain ID and name
- Configures gas parameters
- Sets up parent chain connection
- Enables asset transfers between L2 and L3
- Supports ERC-20 tokens
- Configurable gateway
After deployment, you'll receive:
- Chain RPC endpoint
- Bridge contract addresses
- Validator configuration
- Sequencer information
All information is saved in chain-deployment-info.json
- Secure key management for:
- Validators
- Sequencer
- Bridge admin
- Regular monitoring of:
- Validator performance
- Bridge operations
- Network health
- Test contracts:
npx hardhat test
- Local development:
npx hardhat node