Defi Integrations
deBridge Integration
Learn how to use cross-chain bridging functionality with deBridge protocol
Solana Agent Kit provides comprehensive integration with deBridge’s DLN protocol for cross-chain token transfers. The integration supports creating, executing, and monitoring bridge transactions across multiple blockchain networks.
Key Features
- Cross-chain token transfers
- Transaction status monitoring
- Support for multiple blockchain networks
- Quote generation for bridge transactions
- Token information retrieval
- LangChain tool integration
Basic Usage
Creating a Bridge Order
Executing a Bridge Order
Checking Bridge Status
Getting Supported Chains
LangChain Integration
Solana Agent Kit provides LangChain tools for automated bridge operations:
Create Bridge Order Tool
Execute Bridge Order Tool
Check Bridge Status Tool
Get Supported Chains Tool
Example Prompts
For LangChain AI tools, here are example prompts:
Creating Orders
Checking Status
Chain Information
Important Parameters
Bridge Order Parameters
Required Parameters:
srcChainId
: Source chain ID (e.g., “1” for Ethereum)srcChainTokenIn
: Token address on source chainsrcChainTokenInAmount
: Amount to bridge (in smallest units)dstChainId
: Destination chain IDdstChainTokenOut
: Token address on destination chaindstChainTokenOutRecipient
: Recipient addresssenderAddress
: Sender’s address
Optional Parameters:
slippage
: Slippage tolerance in percentagereferralCode
: Referral code for the transactionaffiliateFeePercent
: Affiliate fee percentageprependOperatingExpenses
: Include operating expenses in calculation
Error Handling
Technical Details
Chain IDs
Transaction Status
API Endpoints
Best Practices
-
Slippage Protection
- Always set a reasonable slippage tolerance
- Default is 0.5% if not specified
- Consider market volatility when setting slippage
-
Transaction Monitoring
- Always monitor transaction status after creation
- Use order links for detailed tracking
- Keep track of order IDs for future reference
-
Error Recovery
- Handle network-specific errors appropriately
- Implement retry logic for failed transactions
- Store transaction details for manual resolution if needed
-
Token Addresses
- Use checksummed addresses for EVM chains
- Use base58 encoded addresses for Solana
- Verify token decimals before setting amounts
Was this page helpful?