Actions APIVaultsSlugRedeem

Quote the redemption asset amount for a vault share redemption.

POST
/vaults/{slug}/redeem/quote

Path Parameters

slug*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

redemptionType?string

Redemption route. New requests use the vault default when omitted. Without a NestVault selector, pending and update requests first select an outstanding legacy AtomicQueue request, then use the default. Pass the same explicit type throughout a request lifecycle, especially when both routes have pending shares.

Value in

  • "atomicQueue"
  • "nest"
nestVaultAddress?string

Exact registered NestVault for this chain and redemption asset. Omit to preserve default routing.

Match^0x[a-fA-F0-9]{40}$
redemptionAsset*string

ERC20 address of the desired redemption asset on the requested chain.

Match^0x[a-fA-F0-9]{40}$
shareAmount*string

Raw base-unit amount of vault shares to redeem (string for bigint safety).

Match^\d{1,78}$
chainId*integer

EVM chain ID. Must be one of the supported chains (Plume=98866, Ethereum=1, Base=8453, BSC=56, Plasma=9745, Avalanche=43114, Arc=5042, Morph=2818) and must match a chain the vault is deployed on.

Range0 < value
includeOtherWindows?boolean

Include quotes for other registered NestVaults for the same chain and asset. Omit to quote only the selected route.

Defaultfalse

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/vaults/nest-wisdom-vault/redeem/quote" \  -H "Content-Type: application/json" \  -d '{    "redemptionAsset": "0x222365ef19f7947e5484218551b56bb3965aa7af",    "shareAmount": "1000000",    "chainId": 98866  }'
{  "data": {    "slug": "string",    "chainId": 0,    "redemptionType": "nest",    "shareTokenAddress": "string",    "redemptionAsset": "string",    "shareAmount": "string",    "shareDecimals": 0,    "redemptionAmount": "string",    "redemptionDecimals": 0,    "feeAmount": "string",    "fees": {      "ratePpm": 0,      "flatAmount": "string",      "maxRatePpm": 0,      "maxFlatAmount": "string"    },    "minPrice": "string",    "deadline": "string",    "rate": "string",    "rateDecimals": 0,    "steps": [      {        "label": "approve",        "description": "string"      }    ],    "nestVaultAddress": "string",    "isDefault": true,    "fulfillmentTimeHours": 0,    "otherRedemptionWindows": [      {        "nestVaultAddress": "string",        "isDefault": true,        "fulfillmentTimeHours": 0,        "quote": {          "redemptionAmount": "string",          "feeAmount": "string",          "fees": {            "ratePpm": 0,            "flatAmount": "string",            "maxRatePpm": 0,            "maxFlatAmount": "string"          }        },        "quoteError": "string"      }    ]  }}