Skip to main content
This guide walks you through bridging USDC from Ethereum to NEAR. By the end, you’ll understand the pattern that works for all chains.

Install

The Pattern

Every transfer follows these steps:
  1. Get fees — Query the relayer fee so your transfer gets finalized automatically
  2. Validate — Check that addresses, amounts, and tokens are valid
  3. Approve — For ERC20 tokens, approve the bridge to spend them
  4. Build & Send — Get an unsigned transaction and broadcast it
That’s it. The transfer is now in progress. Because you included fees, relayers will automatically finalize it on NEAR within a few minutes.

What Just Happened

Let’s break down the key parts:

Relayer Fees

The getFee() call returns the fee required for relayers to finalize your transfer on the destination chain. You can pay in the transfer token (fee) or in native ETH (nativeFee). Without fees, you’d need to finalize manually. See Relayer Fees for more details.

OmniAddress Format

Addresses include a chain prefix so the SDK knows which chain they belong to:
See OmniAddress Format for the full list.

Validation

validateTransfer() does the heavy lifting:
  • Checks that addresses are valid for their chains
  • Verifies the token is registered on the bridge
  • Ensures the amount survives decimal normalization
  • Returns a ValidatedTransfer object the builders need

Unsigned Transactions

buildTransfer() returns a plain object — not a signed transaction:
This works directly with viem’s sendTransaction() or ethers’ signer.sendTransaction().

Using Testnet

For development, switch to testnet:
Testnet uses Sepolia for Ethereum. Make sure your wallet and RPC are configured for the right network.

Track Your Transfer

Check the status using the API client:
See Tracking Transfers for polling patterns and status meanings.

Next Steps

Now that you understand the pattern, pick the guide for your source chain:

EVM Chains

Ethereum, Base, Arbitrum, Polygon, BNB

NEAR

NEAR Protocol

Solana

Solana

Bitcoin

Bitcoin and Zcash
Or learn more about the core concepts:

Transfer Flow

How cross-chain transfers work

Decimal Normalization

Why small amounts can fail