Back a pair on both venues
Lock two tokens once and back the same pair on two venues at the same time, on the EVM chains or on Solana.
Lock each token once. The same locked liquidity then backs the pair on two venues at the same time, Uniswap V4 and 1inch Aqua on the EVM chains, Orca and Raydium on Solana. A swap on either venue draws on it, and nothing is split between the venues.
The examples use WETH and USDC on Base, and SOL and USDC on Solana. Amounts are strings in the token's smallest unit.
Before you start
- A wallet that holds both tokens and pays the network fees.
- An asset vault for each token. See Add an asset.
- An open market for the pair on each venue. See Open a market.
- Both tokens locked, at least 10 USD of each. See Lock and withdraw. Wait for both locks to land.
- A wallet that holds both tokens, and SOL for the network fees and rent.
- An asset vault for each token. See Add an asset.
- A market for the pair on Orca and one on Raydium. See Open a market.
- Both tokens locked, at least 10 USD of each. See Lock and withdraw. Wait for
both locks to read
confirmed.
1. Find both markets
Each market has a strategyId. The open answer has it, also when the market was
already open. Or list the chain's markets:
curl "$AQUA0_API/api/vaults/markets?chainId=8453&includePendingAqua=true"{
"chainId": 8453,
"markets": [
{
"venue": "v4",
"strategyId": "38960560214548620419581884607967218229413556116830054641371650059665611327033",
"token0": "0x4200000000000000000000000000000000000006",
"token1": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"fee": 3000,
"tickSpacing": 60,
"poolId": "0x5622e547d200169623684248c4e4ac258688aea6dd540acf5fb26965861e8639",
"backers": 2
},
{
"venue": "aqua",
"strategyId": "<aqua strategyId>",
"token0": "0x4200000000000000000000000000000000000006",
"token1": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"fee": 3000,
"tickSpacing": 60,
"tickLower": -199140,
"tickUpper": -197100,
"backers": 0,
"pending": true
}
]
}Take the v4 entry and the aqua entry for your pair and fee. On 1inch Aqua each range is its own market, so pick the
one with your range. includePendingAqua=true also lists a 1inch Aqua range that nobody backs yet.
Each token's asset vault is its vault in GET /api/vaults?chainId=8453. You need it in the next step.
Each market is a strategy, bound to one pool. The open answer has its strategy. Or
list them all:
curl "$AQUA0_API/api/solana/strategies"{
"strategies": [
{
"strategy": "492eZkR7VvRbq2CxyRLZR9iYvgD9QHK8rrBjSrVh37YE",
"paused": false,
"vaultPaused": false,
"makers": 0,
"sides": [
{ "vault": "7JsNB5p8znM9qNDig4ynxuBMCY4syAbLAnhdJhVDS6G2", "asset": "So11111111111111111111111111111111111111112", "backers": 0, "backed": "0" },
{ "vault": "6wj2cHo2ZxvDj1pu6B5ymgd1Eh5oCv3zvsdpkptC3ZxU", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "backers": 0, "backed": "0" }
],
"pools": [
{ "pool": "83v8iPyZihDEjDdY8RdZddyZNyUtXngz69Lgo9Kt5d6d", "venue": "orca", "tickSpacing": 1, "feeTierIndex": 1, "feeRate": 100, "tickCurrent": -22933 }
]
},
{
"strategy": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra",
"paused": false,
"vaultPaused": false,
"makers": 0,
"sides": [
{ "vault": "7JsNB5p8znM9qNDig4ynxuBMCY4syAbLAnhdJhVDS6G2", "asset": "So11111111111111111111111111111111111111112", "backers": 0, "backed": "0" },
{ "vault": "6wj2cHo2ZxvDj1pu6B5ymgd1Eh5oCv3zvsdpkptC3ZxU", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "backers": 0, "backed": "0" }
],
"pools": [
{ "pool": "GqxUEcFw8GbfDPoWU6UG2ypvsM3aw3vZmiN4e1Nbv94G", "venue": "raydium", "tickSpacing": 120, "feeRate": 10000, "tickCurrent": -23012 }
]
}
]
}Take the orca strategy and the raydium strategy for your pair. Both name the same two asset vaults, so both draw on
the same locked liquidity. sides gives the token order you use in the next step, here SOL then USDC.
2. Back both markets
One call backs both markets.
curl -X POST "$AQUA0_API/api/vaults/8453/prepare-set-commitments" \
-H "Content-Type: application/json" \
-d '{
"lp": "0x<wallet>",
"groups": [
{
"asset": "0x4200000000000000000000000000000000000006",
"expectedVault": "0x256218A93992256F47c4735e1Fc070d90EaeA263",
"updates": [
{ "strategyId": "<v4 strategyId>", "position": 0, "amount": "20000000000000000", "tickLower": -199140, "tickUpper": -197100 },
{ "strategyId": "<aqua strategyId>", "amount": "20000000000000000" }
]
},
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"expectedVault": "0xb367A4306087d3981B38C032464cD7E3A7a03A4E",
"updates": [
{ "strategyId": "<v4 strategyId>", "position": 0, "amount": "50000000", "tickLower": -199140, "tickUpper": -197100 },
{ "strategyId": "<aqua strategyId>", "amount": "50000000" }
]
}
]
}'- Send one group per token. Each group lists both markets, because a backing always covers both sides of its pair.
amountis the most that side can sell to swaps. Each venue can use all of your locked liquidity, so the same amount can go on both. Each swap draws what it needs at that moment, and backing never lowers your free balance.- On Uniswap V4,
tickLowerandtickUpperare your own range, the same in both groups. - On 1inch Aqua, leave out
position,tickLowerandtickUpper. The range belongs to the market.
{
"calls": [
{ "to": "0x256218A93992256F47c4735e1Fc070d90EaeA263", "data": "0xd94ee4c6...", "value": "0", "description": "Set 2 commitments on this asset vault" },
{ "to": "0xb367A4306087d3981B38C032464cD7E3A7a03A4E", "data": "0xd94ee4c6...", "value": "0", "description": "Set 2 commitments on this asset vault" }
]
}One call backs both markets. It returns one transaction per market.
curl -X POST "$AQUA0_API/api/solana/vaults/prepare-set-commitments" \
-H "Content-Type: application/json" \
-d '{
"owner": "<wallet>",
"tokens": ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],
"amounts": ["200000000", "20000000"],
"tickLower": -24000,
"tickUpper": -22080,
"backings": [
{ "strategy": "492eZkR7VvRbq2CxyRLZR9iYvgD9QHK8rrBjSrVh37YE" },
{ "strategy": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra" }
]
}'{
"owner": "<wallet>",
"transactions": [
{ "strategy": "492eZkR7VvRbq2CxyRLZR9iYvgD9QHK8rrBjSrVh37YE", "venue": "orca", "pool": "83v8iPyZihDEjDdY8RdZddyZNyUtXngz69Lgo9Kt5d6d", "index": 0, "action": "commit", "requestId": "0b6d3c8a-5f1e-4c2a-9a7e-3d8b1f4e6c20", "transaction": "<base64>", "expiresAt": "2026-10-27T12:05:00.000Z" },
{ "strategy": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra", "venue": "raydium", "pool": "GqxUEcFw8GbfDPoWU6UG2ypvsM3aw3vZmiN4e1Nbv94G", "index": 0, "action": "commit", "requestId": "6f0c2f7e-2a0b-4b8e-9b54-0c2d7f0f5a11", "transaction": "<base64>", "expiresAt": "2026-10-27T12:05:00.000Z" }
]
}amountsfollowstokens. Each market gets both amounts in its own token order, so you never reorder them.- Each amount is the most that side can sell to swaps. Each market can use all of your locked liquidity, so the same amounts go on both. Each swap draws what it needs at that moment, and backing never lowers your free balance.
tickLowerandtickUpperare your range on every market. To give one market its own range, settickLowerandtickUpperon its entry inbackings. See Ranges on each venue.indexon an entry numbers your backings on that market. It defaults to0.
3. Sign and send
Send each transaction in calls, in order, from the lp wallet. There is one per asset vault, and each one sets both
markets on that vault.
To lock and back in one wallet batch, put the prepare-deposit calls first and name the amount being locked in the
group's locking. The checks then count it.
Sign each transaction in transactions in the wallet without changing it. Send each one before its expiresAt, with
its requestId.
curl -X POST "$AQUA0_API/api/solana/vaults/transactions/<requestId>/submit" \
-H "Content-Type: application/json" \
-d '{ "signedTransaction": "<base64>" }'{
"requestId": "0b6d3c8a-5f1e-4c2a-9a7e-3d8b1f4e6c20",
"status": "submitted",
"signature": "<signature>"
}Poll GET /api/solana/vaults/transactions/{requestId} until status reads confirmed, failed or expired. There
is one transaction per market.
The wallet pays the network fee and each new backing's rent. The rent comes back when the backing ends.
GET /api/solana/sponsorship?wallet=<wallet> gives what each action costs the wallet, commit included.
4. Check both markets
curl "$AQUA0_API/api/vaults/commitments/8453/0x<wallet>"{
"chainId": 8453,
"lp": "0x<wallet>",
"positions": [
{ "strategyId": "<v4 strategyId>", "venue": "v4", "asset": "0x4200000000000000000000000000000000000006", "vault": "0x256218A93992256F47c4735e1Fc070d90EaeA263", "position": 0, "amount": "20000000000000000", "tickLower": -199140, "tickUpper": -197100, "held0": "20000000000000000", "held1": "50000000" },
{ "strategyId": "<aqua strategyId>", "venue": "aqua", "asset": "0x4200000000000000000000000000000000000006", "vault": "0x256218A93992256F47c4735e1Fc070d90EaeA263", "position": 0, "amount": "20000000000000000", "tickLower": 0, "tickUpper": 0, "held0": "20000000000000000", "held1": "50000000", "notLive": { "reason": "shipping" } }
]
}There is one row per market and token, so four rows here. Amounts change with every fill.
Uniswap V4 backing works at once. 1inch Aqua adds you when the range's program next ships, within about a minute.
Until a range first goes live, its rows carry notLive with the reason, and shipping means it is going live now.
backers in GET /api/vaults/markets counts you on both markets.
When a 1inch Aqua range does not trade
notLive.reasonisshipping: the range is going live now. Read your backing again in a minute.notLive.reasonisbelow-side-floor: the best-placed backer can sell less thanfloorUsd, 10 USD, on one side.notLive.sidesgives each side'sroomUsd, which swaps on either venue change.goLive.sideson your row gives theamounteach side needs, andtoLockthe part your free balance does not cover yet. Back more of the low side, or wait for swaps that pay that token in.- A quote refuses the route with
AQUA_ONE_WAY: the range is low on the token you want and only swaps the other way. Swap the other way, or wait for swaps that refill it.sellsOnlyinaquaMarket.rangesofGET /api/vaults/strategies/marketplace/{chainId}/{strategyId}names the one token the range can sell now.
The same read as on EVM, with the Solana chain id and your wallet.
curl "$AQUA0_API/api/vaults/commitments/1151111081099710/<wallet>"{
"chainId": 1151111081099710,
"lp": "<wallet>",
"positions": [
{ "strategyId": "492eZkR7VvRbq2CxyRLZR9iYvgD9QHK8rrBjSrVh37YE", "venue": "orca", "asset": "So11111111111111111111111111111111111111112", "vault": "7JsNB5p8znM9qNDig4ynxuBMCY4syAbLAnhdJhVDS6G2", "position": 0, "amount": "200000000", "tickLower": -24000, "tickUpper": -22080, "held0": "200000000", "held1": "20000000" },
{ "strategyId": "492eZkR7VvRbq2CxyRLZR9iYvgD9QHK8rrBjSrVh37YE", "venue": "orca", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "vault": "6wj2cHo2ZxvDj1pu6B5ymgd1Eh5oCv3zvsdpkptC3ZxU", "position": 0, "amount": "20000000", "tickLower": -24000, "tickUpper": -22080, "held0": "200000000", "held1": "20000000" },
{ "strategyId": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra", "venue": "raydium", "asset": "So11111111111111111111111111111111111111112", "vault": "7JsNB5p8znM9qNDig4ynxuBMCY4syAbLAnhdJhVDS6G2", "position": 0, "amount": "200000000", "tickLower": -24000, "tickUpper": -22080, "held0": "200000000", "held1": "20000000" },
{ "strategyId": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra", "venue": "raydium", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "vault": "6wj2cHo2ZxvDj1pu6B5ymgd1Eh5oCv3zvsdpkptC3ZxU", "position": 0, "amount": "20000000", "tickLower": -24000, "tickUpper": -22080, "held0": "200000000", "held1": "20000000" }
]
}There is one row per market and token, so four rows here. strategyId is the strategy's address and position its
index. Amounts change with every fill.
A swap can draw on a backing once its transaction reads confirmed. backers and backed in
GET /api/solana/strategies count you on both markets. GET /api/solana/strategies/ranges?strategy=<strategy> groups
one market's backing by range. Your free balance is freePrincipal in
GET /api/vaults/positions/1151111081099710/<wallet>.
Ranges on each venue
| Uniswap V4 | 1inch Aqua | |
|---|---|---|
| The range | Yours, set in tickLower and tickUpper. | The market's. Each range is its own market. |
| Rules | Multiples of the pool's tickSpacing, low to high, holding the current price. | Ticks 0 and position 0. |
| More ranges | Another position, 0 to 255, on the same market. | Back another range's market. |
| Starts | At once. | When the range's program next ships. |
The pool's price is currentTick in GET /api/vaults/pools?chainId=8453. The check uses the price feed, so a range
right at the edge can still be refused. The refusal gives the tick it checked in details.currentTick. To work out
ticks from a price, see Pick a 1inch Aqua range.
On Orca and on Raydium the range is yours, set in tickLower and tickUpper on each backing.
- Use multiples of the pool's
tickSpacing, low to high, holding the pool'stickCurrent. A tick off the spacing is refused. - Each pool has its own spacing and price. Here Orca's spacing is 1 and Raydium's is 120, so -24000 to -22080 fits
both. You can also give each market its own range in
backings. - For more ranges on one market, back it again with a new
index, 0 to 65535. GET /api/solana/strategies/fill-reachshows how much one backing over a range lets a swap fill, before you back it.
A swap uses your liquidity only while the price is inside your range. Your backed amounts can add up to more than you locked. Each fill checks your real balance when it runs.
To change a backing or stop it, see Change or stop backing.
Errors
Every error has code, message and, for most codes, details.
details names the strategy and position.
code | Status | Fix |
|---|---|---|
VALIDATION_ERROR | 400 | A field is malformed, for example an amount that is not a decimal string. |
NOT_FOUND | 404 | A token has no asset vault on this chain. |
VAULT_MISMATCH | 409 | expectedVault is not the token's asset vault. Read it again from GET /api/vaults. |
ONE_SIDED_COMMITMENT | 422 | A market is missing from one group, or only one side has an amount. |
INVALID_RANGE | 422 | The ranges differ between groups, a tick is off the pool's spacing, or a 1inch Aqua update has ticks or a position. |
RANGE_EXCLUDES_PRICE | 422 | The Uniswap V4 range does not hold the current price. See details.currentTick. |
ASSET_NOT_IN_PAIR | 422 | A group's token is not in that market's pair. |
UNKNOWN_STRATEGY | 422 | The id is not a market on this chain. A market opened moments ago can take a few seconds to show, so retry. If it still fails, or details.reason is POOL_NOT_SAVED, open the same market again. That sends nothing, saves a Uniswap V4 pool and returns the market's strategyId. Then retry. |
NO_PRINCIPAL | 422 | Nothing is locked in that asset vault yet. Lock first, or name the amount in locking. |
BACKING_BELOW_MINIMUM | 422 | A side can sell less than 10 USD. details.sides names it. |
BACKING_UNPRICED | 422 | A token has no USD price. |
CONCENTRATED_ONLY | 422 | The 1inch Aqua market is not a concentrated range, so it takes no new backing. |
SERVICE_UNAVAILABLE | 503 | The chain or the price feed could not be read. Retry after details.retryAfterSeconds. |
Reference: lock, asset vaults, markets, pools, set backing, your backing.
code | Status | Fix |
|---|---|---|
INVALID_REQUEST | 400 | A field is missing or malformed, for example only one amount at zero or ticks not low to high. message names it. |
STRATEGY_NOT_FOUND | 404 | No strategy has this address. Read it again from GET /api/solana/strategies. |
POSITION_NOT_FOUND | 404 | No backing has this index on that strategy. |
NO_PRINCIPAL_TO_COMMIT | 409 | Nothing is locked in one of the pair's asset vaults yet. details.asset names it. Lock first. |
ASSET_NOT_IN_PAIR | 422 | A strategy in backings trades another pair. details.strategy names it. |
RANGE_OFF_TICK_SPACING | 422 | A tick is not a multiple of the pool's spacing. See details.tickSpacing. |
RANGE_MUST_HOLD_PRICE | 422 | The range does not hold the pool's price. See details.tickCurrent. |
BACKING_BELOW_MINIMUM | 422 | A side can sell less than 10 USD. details.asset names it. Raise its amount, or lock more of it. |
BACKING_UNPRICED | 422 | A token has no live USD price, so the minimum cannot be checked. |
FEE_SHORTFALL | 422 | The wallet holds too little SOL for the fee and rent. details.neededLamports says how much it needs. |
REQUEST_EXPIRED | 410 | The transaction was not sent before expiresAt. Build it again. |
REQUEST_NOT_PENDING | 409 | This request was already sent. |
SIGNED_TRANSACTION_REJECTED | 400 | The signed transaction is not the one built, or its signature does not check out. Sign it again without changes. |
A 503 means Solana could not be read. Retry shortly.
Reference: send, status, strategies, ranges, fill reach, network fees, your backing.