Cross-Chain Withdrawals
This guide covers withdrawing assets from your EVM smart account.Overview
The SDK provides two withdrawal methods:Gasless EVM Withdrawals (Recommended)
Withdraw USDC from your smart account to any EVM address with zero gas fees. The SDK prepares the platform smart wallet address/signature automatically if needed.How It Works
- Your borrowed USDC is in your smart account (platform wallet)
- SDK executes transfer via ZeroDev paymaster
- Gas is sponsored - you pay nothing
- USDC arrives in your personal wallet
Basic Usage
Complete Example
Supported Chains
Bitcoin Withdrawals
For withdrawing to a Bitcoin address, usewithdrawToBitcoin().
The SDK prepares the platform smart wallet address/signature automatically if needed.
How It Works
- Assets are transferred from your smart account
- Bridge protocol swaps to BTC
- BTC is sent to your Bitcoin address
Basic Withdrawal
Tracking Withdrawal Status
Supported Assets
Withdrawal Parameters
Chain Selection
Checking Balance Before Withdrawal
Withdrawal Status Response
Status Stages
Bitcoin withdrawals use the following bridge stages:
Direct EVM transfers use
INITIALIZING, VALIDATING, CHECKING_BALANCE,
EXECUTING_TRANSFER, and COMPLETED, with FAILED and CANCELLED as terminal
error states.