Skip to main content

Disclaimer

The provided code is for demonstration purposes only and is supplied “as is” without warranties of any kind. Users are responsible for reviewing, testing, and validating the code before executing transactions with real funds. We are not liable for any losses or damages resulting from its use.

Overview

This repository serves as a practical resource for integrators aiming to get started with hands-on examples of using the deBridge Liqudity Network protocol via API. More details on submitting chain-specific orders can be found here.

EVM

Included is a comprehensive TypeScript script demonstrating the transfer of 0.1 USDC from Polygon to Arbitrum. The script outlines all necessary steps for completing a cross-chain swap between the two networks. It also includes examples for executing the approve function on ERC-20 tokens and showcases various deBridge API integrations.

Solana

There are also examples of creating an order from Polygon (EVM) to Solana and from Solana to Polygon (EVM), along with submitting a versioned transaction.