Returns supported withdrawal destination chains. Each destination includes its chain ID, display name, and the canonical loan token address on that chain.
Returns server-built withdrawal action plans. The server resolves the Safe and user context from the accountId, selects source chains, and returns ActionPlan objects for the integrator to execute.
import { TransactionHandler } from "@blend-money/sdk";const result = await client.withdraw.getCalldata({ accountId: account.accountId, destinationChainId: 8453, amount: "1000000000000000000", // isMaxWithdraw: true,});for (const actionPlan of result.actionPlans) { await TransactionHandler.submitActionPlan(actionPlan);}
Each ActionPlan in result.actionPlans represents one source chain. Action plans for different chains can be executed concurrently. TransactionHandler.submitActionPlan() handles step ordering and transaction submission.
Show Raw API response format
The HTTP API returns WithdrawChainPayload objects. The SDK wraps these into ActionPlan objects automatically.Each WithdrawChainPayload contains:
Field
Type
Description
chainId
number
Source chain for this payload
vaultAddress
string
ERC-4626 vault being exited
amount
string
Amount allocated from this chain
timeEstimate
number
Estimated settlement time in seconds. 0 when same chain