Allow or refuse fronting to one chain
Records whether the LP's capital on this chain may be chosen to front swaps to one destination chain. Prove the wallet with the app's caller token or its signature of `SetFrontingConsent(address wallet,string scope,uint256 subject,bool permitted,bytes32 nonce,uint256 expiry)`.
Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.
In: header
A short-lived token proving which wallet is calling. Only the Aqua0 app issues it.
In: header
Path Parameters
The chain's numeric id, for example 8453 for Base. GET /api/vaults/chains lists them.
Header Parameters
The wallet that signed. Required with a wallet signature.
A fresh 32-byte hex value, also in the signed message. Each one works once.
Unix time in seconds when the signature stops working, at most 600 seconds ahead. Also in the signed message.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/fronting-consent/1" \ -H "Content-Type: application/json" \ -d '{ "scope": "chain", "subject": "42220", "permitted": false }'{ "ok": true, "scope": "chain", "subject": "42220", "permitted": false}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}Get an LP's positions on a chain
Returns the LP's position in every asset vault on one chain in one call, with the same figures as the single-vault read.
Request an asset vault
Asks us to open an asset vault for a token. It takes an API key issued to your integration, and we check the token and decide.