Skip to main content

Withdraw to Bitcoin

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

const txHash = await borrow.withdrawToEVM({
  chain: ChainType.ARBITRUM,
  amount: "100",
  destinationAddress: "0x742d...",
  // optional: loanIndex (defaults to 0)
});
  • Uses the smart account (wallet index 0 by default) and is gas-sponsored.
  • No native ETH needed on the destination chain.
  • Specify loanIndex when multiple loans are open.
If you need to redirect to a different chain, just change chain and re-run setup so the smart account is derived for that network.