Skip to main content

Withdraw to Bitcoin

withdrawToBitcoin() prepares the platform smart wallet address/signature automatically if needed.
const txId = await borrow.withdrawToBitcoin({
  chain: ChainType.ARBITRUM,
  amount: "100",
  assetSymbol: "USDC",
  btcAddress: "bc1..."
});
Check status:
const status = await borrow.getWithdrawStatus(txId);

Gasless to EVM

withdrawToEVM() prepares the platform smart wallet address/signature automatically if needed.
const txHash = await borrow.withdrawToEVM({
  chain: ChainType.ARBITRUM,
  amount: "100",
  destinationAddress: "0x742d...",
  // optional: loanIndex (defaults to 0)
});
  • Uses the platform smart account (wallet index 0) and is gas-sponsored.
  • No native ETH needed on the destination chain.
If you need to withdraw from a different chain, pass that chain; the SDK prepares the chain-specific platform wallet signing state automatically.