Aqua0
API ReferenceLiquidity

Build calldata to withdraw free liquidity from a vault

Returns the transaction calldata the LP signs and sends to withdraw their free (undeployed) principal from an asset vault. To exit deployed capital, use prepare-request-redeem instead.

POST
/api/vaults/{chainId}/{asset}/prepare-withdraw

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

chainId*string

Numeric ID of the chain to query or act on.

asset*string

The vault's underlying asset, as a token contract address or ticker symbol (e.g. USDC).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/vaults/string/string/prepare-withdraw" \  -H "Content-Type: application/json" \  -d '{    "amount": "string",    "owner": "string"  }'
Empty
Empty
Empty