Gateway configuration involves setting up secure communication, managing wallet connections, and configuring blockchain network settings.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hummingbot/hummingbot/llms.txt
Use this file to discover all available pages before exploring further.
Development vs Production Modes
Gateway can operate in two distinct modes with different security characteristics:Development Mode (Default)
Development mode characteristics:- Protocol: HTTP (unencrypted)
- Default Port: 15888
- Authentication: None
- Certificates: Not required
- Use Cases: Local testing, development, learning
Production Mode
Production mode provides encrypted HTTPS communication and certificate-based authentication.
- Protocol: HTTPS (encrypted)
- Default Port: 15888
- Authentication: Mutual TLS (client certificates)
- Certificates: Required (CA cert, client cert, client key)
- Use Cases: Production trading, remote access, any deployment with real funds
Generate Certificates
From the Hummingbot CLI, generate SSL certificates:This creates three files in the
certs/ directory:ca_cert.pem- Certificate Authority certificateclient_cert.pem- Client certificate for authenticationclient_key.pem- Private key for the client certificate
Verify HTTPS
Certificates are automatically loaded from the
certs/ directory. Hummingbot will use these certificates to establish secure communication with Gateway.Security Best Practices
Always Use HTTPS in Production
Never run Gateway in development mode (HTTP) with real funds or on untrusted networks.
Protect Your Certificates
Keep certificate files secure. Anyone with access to your certificates can communicate with Gateway.
Use Firewall Rules
Restrict access to port 15888 using firewall rules if running on a remote server.
Regular Certificate Rotation
Regenerate certificates periodically for enhanced security.
Wallet Configuration
Gateway requires wallet private keys to sign and submit blockchain transactions.Adding a Wallet
To add a wallet to Gateway:Multiple Wallets
You can configure different wallets for different chains:Wallet Security
Wallet private keys are stored in Gateway’s configuration:- Location:
conf/connectors/directory - Format: Encrypted JSON files
- Encryption: Uses the same password as your Hummingbot configuration
Backup your
conf/ directory regularly. Loss of this directory means loss of access to your configured wallets within Gateway.Network Configuration
Gateway connects to blockchain networks via RPC endpoints. You can configure custom RPC endpoints for better performance or privacy.Using Default RPC Endpoints
Gateway comes with default public RPC endpoints for common chains. These work out of the box but may have rate limits.Configuring Custom RPC Endpoints
For production use, configure your own RPC endpoints:RPC Provider Recommendations
- Alchemy
- Infura
- QuickNode
- Self-Hosted
Alchemy provides reliable RPC endpoints with generous free tiers.
- Free tier: 300M compute units/month
- Supported chains: Ethereum, Polygon, Arbitrum, Optimism
- Dashboard: alchemy.com
Gas Configuration
Configure gas settings for optimal transaction execution:Gas Price Strategy
Gateway supports multiple gas price strategies:Strategy options:
fast- Higher gas price for faster confirmation (1-2 blocks)medium- Standard gas price (2-5 blocks)slow- Lower gas price for cost savings (5+ blocks)custom- Specify exact gas price in Gwei
EIP-1559 Support
For chains supporting EIP-1559 (like Ethereum post-London fork):Connector-Specific Configuration
Each DEX connector may have additional configuration options:Uniswap Configuration
SushiSwap Configuration
Environment Variables
Key environment variables for Gateway configuration:| Variable | Description | Default |
|---|---|---|
DEV | Enable development mode (HTTP) | true |
GATEWAY_HOST | Gateway host address | localhost |
GATEWAY_PORT | Gateway port | 15888 |
CERT_PATH | Path to certificates directory | /home/gateway/certs |
CONFIG_PATH | Path to configuration directory | /home/gateway/conf |
Configuration Files
Gateway configuration is stored in YAML files:Testing Configuration
Verify your Gateway configuration:Troubleshooting
Certificate errors
Certificate errors
Symptom: SSL/TLS connection errorsSolution:
- Regenerate certificates:
gateway generate-certs - Verify certificate files exist in
certs/directory - Ensure Gateway is running in production mode:
DEV=false - Restart Gateway after regenerating certificates
RPC connection failures
RPC connection failures
Symptom: “Unable to connect to network” errorsSolution:
- Verify RPC endpoint URL is correct
- Check that RPC provider is online and accessible
- Ensure API key (if required) is valid
- Test RPC endpoint manually:
Wallet not found
Wallet not found
Symptom: Gateway cannot find configured walletSolution:
- Reconnect wallet:
gateway connect <chain> - Verify wallet configuration exists in
conf/connectors/ - Check that encryption password matches Hummingbot password
Transaction failures
Transaction failures
Symptom: Transactions fail or revertSolution:
- Increase gas limit multiplier in configuration
- Adjust slippage tolerance for the connector
- Ensure sufficient native token balance for gas fees
- Check Gateway logs for detailed error messages
Next Steps
Supported Chains
View all available blockchains and DEX protocols
AMM DEX Connectors
Learn about trading on AMM DEXs
CLI Commands
Gateway-related CLI commands reference
Security
Security best practices for Hummingbot