Skip to main content

Cross-Chain Withdrawals

This guide covers withdrawing assets from your EVM smart account.

Overview

The SDK provides two withdrawal methods:
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

  1. Your borrowed USDC is in your smart account (platform wallet)
  2. SDK executes transfer via ZeroDev paymaster
  3. Gas is sponsored - you pay nothing
  4. USDC arrives in your personal wallet

Basic Usage

Complete Example

Supported Chains


Bitcoin Withdrawals

For withdrawing to a Bitcoin address, use withdrawToBitcoin(). The SDK prepares the platform smart wallet address/signature automatically if needed.

How It Works

  1. Assets are transferred from your smart account
  2. Bridge protocol swaps to BTC
  3. 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.

Polling for Completion

Fee Estimation

Get estimated fees before withdrawal:

Error Handling