USDC Transfers With Connect SDK
Installation
npm install @wormhole-foundation/sdkUsage
import { Wormhole } from "@wormhole-foundation/sdk";
import evm from "@wormhole-foundation/sdk/evm";
// ...
const wh = await wormhole("Testnet", [evm]);Manual Transfer
const srcAddress = Wormhole.chainAddress("Ethereum", "0xdeadbeef...")
const dstAddress = Wormhole.chainAddress("Avalanche", "0xbeefdead...")
const xfer = await wh.circleTransfer(
1_000_000n, //
srcAddress,
dstAddress
);
console.log(xfer);Automatic Transfer
Complete Partial Transfer
Last updated
Was this helpful?

