Actions APIVaultsSlugUnloop

Build authorizations and an async unloop request; this does not execute the exit.

POST
/vaults/{slug}/unloop/build-tx

Path Parameters

slug*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

chainId*integer
Range0 < value
marketId*string
Match^0x[0-9a-fA-F]{64}$
sender*string

Position owner and signer of every returned transaction. Relayed execution is not supported.

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

0 fully exits; 10000 leaves an unborrowed collateral position (1x). Must be below current leverage.

Range0 <= value <= 4294967295
slippageBps?integer

Share-price slippage in basis points (50 = 0.5%). Supply this or the raw price limit, never both.

Range0 <= value <= 9999
minSharePriceE27?string

Minimum accepted redemption price in raw asset/share units, scaled by 1e27.

Match^\d{1,78}$
deadline?integer

Unix seconds; latest keeper execution time. Omit for now + 17 days; a future timestamp overrides the default.

Range0 < value
Default1793089765
skipSimulation?boolean
Defaultfalse

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/vaults/nest-wisdom-vault/unloop/build-tx" \  -H "Content-Type: application/json" \  -d '{    "chainId": 1,    "marketId": "string",    "sender": "string",    "leverageBps": 0  }'
{  "data": {    "slug": "string",    "chainId": 0,    "marketId": "string",    "sender": "string",    "blockNumber": "string",    "vaultAddress": "string",    "loanToken": "string",    "shareToken": "string",    "unlooperAddress": "string",    "adapterAddress": "string",    "leverageBps": 0,    "minSharePriceE27": "string",    "deadline": 0,    "currentCollateralShares": "string",    "currentBorrowShares": "string",    "execution": "keeper",    "transactions": [      {        "label": "approve",        "description": "string",        "to": "string",        "data": "string",        "value": "0",        "complianceExpiresAt": 1      }    ]  }}