Skip to main content
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 chain
  • srcChainTokenInAmount: Amount to bridge (in smallest units)
  • dstChainId: Destination chain ID
  • dstChainTokenOut: Token address on destination chain
  • dstChainTokenOutRecipient: Recipient address
  • senderAddress: Sender’s address
Optional Parameters:
  • slippage: Slippage tolerance in percentage
  • referralCode: Referral code for the transaction
  • affiliateFeePercent: Affiliate fee percentage
  • prependOperatingExpenses: Include operating expenses in calculation

Error Handling

Technical Details

Chain IDs

Transaction Status

API Endpoints

Best Practices

  1. Slippage Protection
    • Always set a reasonable slippage tolerance
    • Default is 0.5% if not specified
    • Consider market volatility when setting slippage
  2. Transaction Monitoring
    • Always monitor transaction status after creation
    • Use order links for detailed tracking
    • Keep track of order IDs for future reference
  3. Error Recovery
    • Handle network-specific errors appropriately
    • Implement retry logic for failed transactions
    • Store transaction details for manual resolution if needed
  4. Token Addresses
    • Use checksummed addresses for EVM chains
    • Use base58 encoded addresses for Solana
    • Verify token decimals before setting amounts