Connecting a Wallet
Why
Option A — pass a signer
import { SwapperIframe } from "@swapper-finance/deposit-sdk";
const swapper = new SwapperIframe({
integratorId: "your-id",
dstChainId: "8453",
dstTokenAddr: "0x833…913",
depositWalletAddress: "0x2A0…28A",
wallet: { signer }, // an ethers/viem-compatible signer — auto-connected on load
});Option B — provide handlers
Updating the signer later
Under the hood: the wallet message protocol
Message
Direction
Meaning
Last updated