Deep Dive into NEAR Intents
Let's take a deep dive into the architecture of cross-chain swaps on NEAR Protocol, exploring how NEAR Intents and the PoA Bridge work together to enable secure and efficient asset transfers across blockchains.
Introductionโ
Given the bast amount of chains and assets that have surged, it is now common for users to need to swap assets across chains (e.g. swap USDT on Ethereum for SOL on Solana).
Since each blockchain is a separate and isolated system - indeed, blockchains do not have any inherent way to communicate with each other - different off-chain services emerged to enable cross-chain swaps.
Today, I want to take a deep dive into the technical foundations on how cross-chain swaps work on NEAR Protocol, and understand which features of the protocol enabled it to be robust and secure.
But before, let's briefly review how cross-chain swaps have traditionally worked, and what challenged they faced, to better understand why NEAR's approach is unique and powerful.
The problem with cross-chain swapsโ
Let's take a simple example: you want to swap 100 USDT on Ethereum for some amount of native Solana tokens. There are two main approaches to achieve this:
1. Bridge, then swapโ
You send 100 USDT from your Ethereum account to a Solana wallet that you control using a multi-chain bridge. Once the funds arrive, you go to any swap in Solana to convert your USDT into SOL.
The main point of trust here is in the bridge itself. You need to trust that the bridged assets will arrive in the target chain, and that the bridge is secure enough to prevent theft or loss of funds.
2. Use a Counterpartyโ
Instead of bridging the tokens, you find a counterparty who already has SOL and wants USDT on Ethereum. You agree on a swap rate, send them your 100 USDT on Ethereum, and they send you SOL tokens to your Solana wallet in return.
From a user's perspective this can feel faster, but it immediately raises a security question: how do you make this operation atomic? You do not want to send your USDT and never receive SOL, and the counterparty does not want to send SOL without a guarantee that they will receive your USDT.
Achieving atomicity across multiple blockchains is extremely difficult because each chain has its own execution model, timing, and finality.
