LP

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)`.

PUT
/api/fronting-consent/{chainId}

Authorization

X-API-Key<token>

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

X-Caller-Token<token>

A short-lived token proving which wallet is calling. Only the Aqua0 app issues it.

In: header

Path Parameters

chainId*integer

The chain's numeric id, for example 8453 for Base. GET /api/vaults/chains lists them.

Header Parameters

X-Wallet-Address?string

The wallet that signed. Required with a wallet signature.

X-Wallet-Nonce?string

A fresh 32-byte hex value, also in the signed message. Each one works once.

X-Wallet-Expiry?string

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"}