debridge

Implement cross-chain token transfers and message passing on Solana using the deBridge SDK.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill debridge-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debridge
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/debridge
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill debridge-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @solana/web3.js, bs58, @coral-xyz/anchor, debridge-solana-sdk.

What problem does it solve? Building cross-chain bridges between Solana and EVM chains requires precise knowledge of deBridge program IDs, PDA derivations, account ordering, fee structures, and chain ID formats—details that are easy to get wrong and costly when incorrect. ## Core Features & Use Cases - Cross-Chain Transfers: Send tokens from Solana to 20+ EVM chains with native or asset fee payment, including exact-amount transfers and PDA-signed sends. - Message Passing & External Calls: Send arbitrary cross-chain messages and execute smart contract calls on destination chains with execution fees and fallback addresses. - Claim Validation & Fee Queries: Validate incoming claims on the receiving side and query transfer fees, chain support, and asset fee availability. - Use Case: Build a Solana program that bridges USDC to Ethereum, derives all required deBridge PDAs, calculates total fees, and submits the transfer via the DLN API or on-chain SDK. ## Quick Start Ask the agent to write a Solana Anchor program that sends tokens from Solana to Ethereum using the deBridge SDK with native fee payment.

Frequently Asked Questions about debridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send tokens from Solana to Ethereum using deBridge?

Use the deBridge Solana SDK's invoke_debridge_send function with the target chain ID, 20-byte EVM receiver address, amount, and fee mode. Pass the required accounts via remaining_accounts in the documented order, or use the DLN API create-tx endpoint from a TypeScript client.

What is the difference between native fee and asset fee in deBridge?

Native fee pays protocol fees in SOL, while asset fee deducts fees from the bridged token itself. Asset fee is not available on all chains, so check availability with is_asset_fee_available before selecting that mode.

How do I derive deBridge PDAs on Solana?

Derive the Bridge PDA with seeds ["BRIDGE", token_mint] under the deBridge program, Chain Support Info with ["CHAIN_SUPPORT_INFO", chain_id] under the settings program, and Nonce Storage with ["NONCE_STORAGE", sender]. The SDK provides helper traits like find_bridge_address for each PDA type.

Can I use deBridge on Solana devnet or testnet?

deBridge infrastructure runs on mainnet only, so testing requires a mainnet fork or small real transactions. The SDK supports an env feature flag to override program IDs for custom environments, but the actual bridging protocol is mainnet-based.

Why does my deBridge transaction fail with WrongAccountDiscriminator?

This error means an account passed to the SDK is not the expected type, usually due to incorrect PDA derivation or wrong account ordering in remaining_accounts. Verify all PDAs against the documented seeds and follow the exact required account order.

How do I execute a smart contract call on the destination chain with deBridge?

Build the external call data, compute its Keccak256 shortcut, and pass it in SendSubmissionParamsInput along with an execution fee and fallback address. For large payloads, initialize external call storage first with invoke_init_external_call.