š Getting Started
Bridgent API provides comprehensive cross-chain infrastructure for seamless asset bridging, portfolio migration, and contract deployment across multiple blockchain networks.
Base URL: https://api.bridgent.io/v1
Environment: Mainnet | Testnet available
Protocol: HTTPS only
š Authentication
All API requests require authentication using API keys. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
X-Bridgent-Version: 2024-01
Note: API keys can be generated from your Bridgent dashboard. Keep your keys secure and never expose them in client-side code.
š” Bridge Endpoints
Initiate a cross-chain bridge transaction for tokens or assets
Request Body:
{
"fromChain": "ethereum",
"toChain": "polygon",
"token": "USDC",
"amount": "1000.50",
"recipient": "0x742d35Cc6634C0532925a3b8D489319324B4B3FF",
"slippage": "0.5",
"gasPrice": "auto",
"priorityFee": "2.5"
}
Response:
{
"success": true,
"txId": "0x1234...abcd",
"estimatedTime": "5-10 minutes",
"fees": {
"bridgeFee": "0.1%",
"gasFee": "0.005 ETH",
"totalFee": "1.05 USDC"
}
}
Check the status of a bridge transaction
Example:
GET /bridge/status/0x1234...abcd
Response:
{
"txId": "0x1234...abcd",
"status": "completed",
"fromChain": "ethereum",
"toChain": "polygon",
"progress": 100,
"confirmations": "12/12",
"estimatedCompletion": null
}
Get fee estimation for bridge transaction
Request Body:
{
"fromChain": "ethereum",
"toChain": "bsc",
"token": "ETH",
"amount": "1.0"
}
šļø Migration Endpoints
Migrate entire portfolio or specific assets across chains
Request Body:
{
"targetChain": "arbitrum",
"assets": [
{
"type": "token",
"symbol": "USDC",
"amount": "all"
},
{
"type": "nft",
"contract": "0x...",
"tokenIds": [1, 2, 3]
}
],
"migrationFee": "150 Bridgent",
"gasOptimization": true
}
Analyze portfolio for optimization opportunities
Response:
{
"totalValue": "$25,450.30",
"chains": ["ethereum", "polygon", "arbitrum"],
"recommendations": [
{
"type": "consolidation",
"description": "Consolidate USDC holdings to Arbitrum",
"savings": "$45.20"
}
]
}
š Contract Deployment
Deploy smart contracts across multiple chains
Request Body:
{
"chains": ["ethereum", "polygon", "arbitrum"],
"contractType": "ERC20",
"bytecode": "0x608060405234801561001057600080fd5b50...",
"constructorArgs": ["TokenName", "TKN", 18, 1000000],
"gasLimit": "auto",
"verifyContract": true
}
š Network Information
Get comprehensive list of supported blockchain networks
Response:
{
"chains": [
{
"id": "ethereum",
"name": "Ethereum Mainnet",
"chainId": 1,
"nativeCurrency": "ETH",
"bridgeContract": "0x...",
"avgBlockTime": "12s",
"status": "active"
}
]
}
Get list of supported tokens for bridging
Get bridge volume statistics
š Rate Limits & Pricing
Free Tier
- 100 requests/hour
- Basic bridge operations
- Standard support
- Rate limit reset: hourly
Pro Tier
- 1,000 requests/hour
- All bridge operations
- Priority support
- Advanced analytics
Enterprise
- Custom limits
- Dedicated infrastructure
- 24/7 support
- Custom integrations
š ļø SDKs & Tools
JavaScript/TypeScript
npm install @bridgent/sdk
Full-featured SDK with TypeScript support
Python
pip install bridgent-python
Python SDK for backend integrations
Go
go get github.com/bridgent/go-sdk
High-performance Go SDK
Rust
cargo add bridgent-rs
Rust SDK for system-level integrations
šØ Error Codes
400
- Bad Request: Invalid parameters
401
- Unauthorized: Invalid API key
403
- Forbidden: Insufficient permissions
429
- Rate Limited: Too many requests
500
- Internal Error: Server-side issue
šÆ What is Bridgent?
Bridgent is a comprehensive cross-chain infrastructure platform that enables seamless asset bridging, portfolio migration, and smart contract deployment across multiple blockchain networks. Our platform eliminates the complexity of managing assets across different chains while ensuring security and cost-effectiveness.
Key Features:
- Universal Bridge: Bridge any token between 15+ blockchain networks
- One-Click Migration: Migrate entire portfolios with a single transaction
- Multi-Chain Deployment: Deploy contracts across multiple chains simultaneously
- Portfolio Analytics: Real-time tracking and optimization recommendations
- Gas Optimization: Intelligent routing to minimize transaction costs
š Getting Started
1
Connect Your Wallet
Click the "Connect Wallet" button and select your preferred wallet (MetaMask, WalletConnect, etc.). Ensure you have Bridgent tokens to use advanced features.
Supported Wallets: MetaMask, WalletConnect, Coinbase Wallet, Rainbow, Trust Wallet
2
Choose Your Operation
Select from four asset types:
- Tokens: Bridge individual cryptocurrencies
- Contracts: Deploy or interact with smart contracts
- Portfolio: Migrate your entire asset portfolio
- Address Assets: Manage assets for specific addresses
3
Configure Transaction
Select source and destination networks, specify amounts, and review fees. Our system will automatically optimize for the best rates and lowest gas costs.
4
Execute & Monitor
Confirm the transaction in your wallet and monitor progress in real-time. Most bridges complete within 5-15 minutes depending on network congestion.
š Bridging Tokens
Token bridging allows you to move cryptocurrencies between different blockchain networks while maintaining their value and utility.
How Token Bridging Works:
- Lock: Your tokens are locked in a smart contract on the source chain
- Verify: Cross-chain validators confirm the lock transaction
- Mint: Equivalent tokens are minted on the destination chain
- Release: New tokens are transferred to your wallet
Example: Bridging USDC from Ethereum to Polygon
Scenario: You have 1,000 USDC on Ethereum and want to move it to Polygon for lower transaction fees.
- Select "Tokens" asset type
- Choose Ethereum as source, Polygon as destination
- Select USDC and enter amount (1,000)
- Review fees (~$5-15 depending on gas prices)
- Confirm transaction and wait 5-10 minutes
Result: You'll receive 1,000 USDC on Polygon minus bridge fees
šÆ Portfolio Migration
Portfolio migration enables you to move your entire cryptocurrency holdings from one blockchain to another in a single, optimized transaction.
Benefits of Portfolio Migration:
- Gas Optimization: Bundle multiple transactions to save on fees
- Time Efficiency: Complete in minutes vs. hours of manual bridging
- Risk Reduction: Single transaction reduces exposure to price volatility
- Automated Routing: AI-powered path finding for optimal costs
Migration Process:
- Analysis: Our system scans your wallet and identifies all bridgeable assets
- Optimization: Calculates the most cost-effective migration path
- Estimation: Provides detailed breakdown of fees and timeline
- Execution: Performs all bridges simultaneously with smart batching
- Verification: Confirms all assets arrive safely on the destination chain
Migration Fees:
Portfolio migration requires 150 Bridgent tokens plus standard bridge fees. This fee covers:
- Advanced gas optimization algorithms
- Multi-transaction coordination
- Priority processing
- Insurance coverage for the migration
šļø Smart Contract Deployment
Deploy smart contracts across multiple blockchain networks simultaneously, ensuring consistent functionality and reducing deployment complexity.
Supported Contract Types:
ERC-20 Tokens
Standard cryptocurrency tokens with transfer, approval, and allowance functionality
ERC-721 NFTs
Non-fungible tokens for unique digital assets and collectibles
ERC-1155 Multi-Token
Contracts supporting both fungible and non-fungible tokens
Custom Contracts
Deploy any Solidity contract with custom logic and functionality
Deployment Process:
- Upload Contract: Provide Solidity source code or bytecode
- Select Networks: Choose target blockchain networks
- Configure Parameters: Set constructor arguments and deployment settings
- Gas Estimation: Review deployment costs across all networks
- Deploy: Execute deployment transactions simultaneously
- Verify: Automatic source code verification on block explorers
š” Best Practices
š Security
- Always verify contract addresses before bridging
- Start with small amounts for testing
- Use hardware wallets for large transactions
- Double-check destination addresses
š° Cost Optimization
- Bridge during low-gas periods (weekends, late night UTC)
- Bundle multiple operations when possible
- Consider destination chain fees for ongoing usage
- Use portfolio migration for multiple assets
ā° Timing
- Allow 15-30 minutes for bridge completion
- Avoid bridging during network congestion
- Plan ahead for time-sensitive transactions
- Monitor transaction status actively
šÆ Strategy
- Research destination chain ecosystems
- Consider yield farming opportunities
- Plan for return trips if needed
- Keep some native tokens for gas fees
š Troubleshooting
Transaction is stuck or pending
Solution: Cross-chain transactions can take 15-30 minutes. If longer than 1 hour, contact support with your transaction ID.
Bridged tokens not appearing
Solution: Add the token contract address to your wallet. Check our supported tokens list for the correct contract address on the destination chain.
High gas fees
Solution: Wait for lower network congestion or use our gas optimization features. Consider bridging to a lower-cost chain first.
Insufficient Bridgent tokens
Solution: Acquire Bridgent tokens from supported exchanges or DEXs. Basic bridging works without Bridgent tokens, but advanced features require them.
š Support & Resources
Live Chat
24/7 support available through our in-app chat system
Knowledge Base
Comprehensive guides and tutorials at docs.bridgent.io
Community
Join our Discord server for community support and updates
Email Support
Technical support at support@bridgent.io