Aqua0
API ReferenceCross-chain

Build calldata to redeem a strategy's counter-asset leg

Returns the calldata to redeem the counter-asset portion of a cross-asset strategy position (here the asset is the counter-asset vault, not the one originally locked).

POST
/api/vaults/{chainId}/{asset}/prepare-redeem-composition

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 counter-asset vault's underlying asset, as a token contract address, not the asset originally locked.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/vaults/string/string/prepare-redeem-composition" \  -H "Content-Type: application/json" \  -d '{    "strategyId": "string",    "amount": "string",    "receiver": "string"  }'
{  "vault": "string",  "calls": [    {      "to": "string",      "data": "string",      "value": "string",      "description": "string"    }  ]}
Empty
Empty