Documentation Index
Fetch the complete documentation index at: https://docs.blend.money/llms.txt
Use this file to discover all available pages before exploring further.
client.withdraw.getDestinations()
Returns supported withdrawal destination chains. Each destination includes its chain ID, display name, and the canonical loan token address on that chain.
getDestinations() to populate the withdrawal destination picker before requesting calldata.
client.withdraw.getCalldata(params)
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.
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.
Important behavior:
amountis an integer string in underlying token unitsisMaxWithdraw: trueredeems all shares across chains- a
409response means a rebalance flow plan is already active - for max withdraws, bridge steps may be omitted because the exact post-settlement amount is not known up front
forceDeallocatesteps appear when funds need to be pulled from a position that does not support standard withdrawal
Next steps
- Accounts and reads - Safe resolution and account-scoped read APIs
- Deposit APIs - chain discovery, token discovery, and deposit quotes
- Deposit and withdrawal flow guide - end-to-end integration walkthrough