Import
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
yieldType | YieldType | Yes | Yield strategy (CORE, TREASURY, FRONTIER) |
wantAsset | Address | Yes | Token address to receive as a refund |
chainId | ChainId | Yes | Chain ID where the order exists |
orderIndex | bigint | Yes | Index of the order to cancel in the WithdrawQueue |
Return Type
- Type Definition
- Example Response
Examples
- Viem
- Wagmi
Error Handling
| Error | Description | Resolution |
|---|---|---|
Vault chain mismatch | Vault not on requested chain | Verify chainId matches vault deployment |
WithdrawQueue contract address not configured | Missing contract config | Check vault exists for yieldType/chain |
No vault found for asset | Invalid vault lookup | Verify wantAsset and yieldType combination |
Related
- Withdrawals Guide — Complete withdrawal integration guide including cancellation flow
- getWithdrawalRequests — Retrieve withdrawal requests to find the orderIndex
- prepareWithdrawOrderTxData — Submit withdrawal orders
- prepareApproveWithdrawOrderTxData — Approve vault shares for withdrawal