Authorize a Uniswap V4 JIT liquidity injection for one swap
Returns a backend-signed EIP-712 authorization that lets a trader pull just-in-time liquidity into the Uniswap V4 pool for one specific swap, binding the exact swap and executor. Venue must be 'v4', so call /quote with venue v4 first to preview the fill.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/swap/authorize" \ -H "Content-Type: application/json" \ -d '{ "poolId": "string", "chainId": "string", "token0": "string", "token1": "string", "classId": "string", "amountSpecified": "string", "sqrtPriceLimitX96": "string" }'{ "venue": "v4", "authorization": { "swapId": "string", "poolId": "string", "classId": "string", "nonce": "string", "deadline": "string", "executor": "string", "signature": "string", "ranges": [ { "tickLower": 0, "tickUpper": 0, "liquidity": "string" } ], "routePlan": {} }, "hookData": "string"}Submit a cross-chain front request (LP-signed demand)
Records an LP's EIP-712-signed FrontRequest bound to the frontId they will lock. The signature is the authorization, so this records demand only and moves no funds.
Get a wallet's Uniswap V4 swap history
Returns the wallet's realized Uniswap V4 swaps, newest first, with token deltas signed from the pool's perspective and returned as decimal strings. Only settled swaps that took Aqua0 JIT liquidity and carried a trader at authorize time are visible.