Aqua0
API ReferenceVaults

Check whether an LP can lock liquidity into a vault

Reports whether an LP can lock liquidity into an asset vault and, if not, why (for example the vault is paused or not deployed), plus the maximum lockable amount and any gates. Locking is permissionless, so this lets the UI disable the button with a reason instead of paying gas to discover a revert.

GET
/api/vaults/{chainId}/{asset}/deposit-eligibility/{lp}

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 (0x-prefixed).

lp*string

The liquidity provider's wallet address.

Query Parameters

amount?string

Optional. Checks eligibility for a specific deposit size, in the asset's smallest unit (e.g. wei for an 18-decimal token).

Response Body

application/json

curl -X GET "https://example.com/api/vaults/string/string/deposit-eligibility/string"
{  "eligible": true,  "reason": "VAULT_PAUSED",  "message": "string",  "maxDepositable": "string",  "gates": {    "paused": true  },  "globalCap": {    "capUsd": 0,    "usedUsd": 0,    "remainingUsd": 0  },  "vault": "string",  "fleetLive": true,  "rpcDegraded": true}