{ destination: { chain, authority } } adds or
removes a passkey or ECDSA key on its Swig (see addPasskey and
addEcdsaKey). That change is always gas-sponsored and billed to the
integrator’s sponsorship; do not add a sponsored flag to authority inputs.
The execution example requires a managed EVM account, a viem base chain,
destination calls, and sponsorship enabled for your integrator. The
delivery example requires sufficient USDC in the account on base to
cover delivery and fees; usdcOnBase and usdcOnOptimism are token addresses,
optimism is the viem destination chain, and recipient is the destination
EVM address. Amounts use the token’s smallest units: 1_000_000n is
1 USDC for a six-decimal token.
Method on an account instance returned by createAccount. Requires a managed transaction account (EVM or managed Solana); unavailable on receiver-only and standalone Solana accounts.
Usage
Parameters
AccountTransaction<_C>
required
Transaction to prepare
Returns
PreparedTransactionData
The prepared transaction data, including available quotes
See also
- signTransaction to sign the prepared transaction
- submitTransaction to submit the signed transaction