Skip to main content
This quickstart runs a CCTP deposit on testnet: USDC on Avalanche Fuji arrives as native USDC in a Stellar testnet account. Your user’s own EVM wallet signs and pays gas (direct funding).
The Pesa SDK is in preview. Access is by request until the package is published on npm. Write to the team through pesapay.xyz.

Before you start

  • A Stellar testnet account with a USDC trustline to Circle’s testnet issuer.
  • An EVM wallet on Avalanche Fuji with AVAX for gas and testnet USDC from Circle’s faucet.
  • A Pesa API token for the Stellar account. See Authentication.

Install

Run a deposit

verifyCctpCalls throws if the server’s calls would send the USDC anywhere but the user’s own Stellar account. Always call it before the wallet prompt. A wrong field in a burn loses the funds for good.

Watch it arrive

Avalanche reaches finality in seconds, so the USDC usually lands within a minute. Base, Arbitrum and Ethereum take 15 to 19 minutes under CCTP Standard Transfer.

Next

Deposit guide

Deposit addresses, sponsored gas and USDT0.

Withdraw guide

Send USDC from Stellar back to an EVM chain.