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.
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
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
application/json
curl -X POST "https://example.com/api/vaults/requests" \ -H "Content-Type: application/json" \ -d '{ "chain": "8453", "token": "0x00000000000000000000000000000000000000c0" }'{ "status": "requested"}{ "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"}{ "error": "string", "code": "string", "message": "string", "details": {}, "requestId": "string"}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)`.
Get the text a vault request signs
Returns the exact text a wallet signs to request an asset vault, issued now.