Actions APIVaultsSlugUpdate redeem

Build a transaction to reduce an existing pending redemption request.

Existing redemptions on registered NestVault instances hidden from EVM Actions can still be reduced or canceled. A nonzero pending balance, a strictly lower total, and the existing simulation checks remain required.

POST
/vaults/{slug}/update-redeem/build-tx

Existing redemptions on registered NestVault instances hidden from EVM Actions can still be reduced or canceled. A nonzero pending balance, a strictly lower total, and the existing simulation checks remain required.

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}$
chainId*integer

EVM chain ID. Must be one of the supported chains and must match a chain the vault is deployed on.

Range0 < value
user*string

User/controller address whose current pending redemption should be read.

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

Raw base-unit final pending-share total after the reduction. Use 0 to cancel the request.

Match^\d{1,78}$
skipSimulation?boolean

Skip the transaction simulation preflight.

Defaultfalse

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/vaults/nest-wisdom-vault/update-redeem/build-tx" \  -H "Content-Type: application/json" \  -d '{    "redemptionAsset": "0x222365ef19f7947e5484218551b56bb3965aa7af",    "chainId": 98866,    "user": "0x00000000000000000000000000000000000000ab",    "newShareAmount": "500000"  }'
{  "data": {    "slug": "string",    "chainId": 0,    "redemptionType": "nest",    "nestVaultAddress": "string",    "shareTokenAddress": "string",    "redemptionAsset": "string",    "user": "string",    "previousPendingShares": "string",    "newShareAmount": "string",    "shareDecimals": 0,    "transactions": [      {        "label": "updateRedeem",        "description": "string",        "to": "string",        "data": "string",        "value": "0"      }    ]  }}