# Vurto Swap AI API Guide

Public API for AI agents and integrators to quote, build, sign, and track token swaps at the best
net price, on 9 EVM chains (Ethereum, Optimism, BNB Chain, Gnosis, Polygon, Base, Arbitrum One,
Avalanche, Unichain) across Velora, KyberSwap, 1inch, CoW Protocol and the direct
pools Uniswap, SushiSwap, PancakeSwap, Aerodrome and QuickSwap, plus `composto`, a two-hop route that crosses two of those pools inside one transaction, and on Solana
across Jupiter (router), Raydium, Orca and Meteora.

Solana lives under `/v1/svm` and is described in §6. Same vocabulary, different engine: you pick
which one by the network you name, not by learning a second API.

> **Always use the latest version.** This guide, `https://swap.vurto.fi/agent-quickstart.md`, and
> `https://swap.vurto.fi/openapi.json` change over time — fetch them live each run, don't cache a
> copy across sessions.

## 1. Base URLs

- Production: `https://swap.vurto.fi/v1` (EVM), `https://swap.vurto.fi/v1/svm` (Solana)
- Development: `https://swap-dev.vurto.fi/v1`, `https://swap-dev.vurto.fi/v1/svm`

`/v1` is versioned independently of the app's own `/api/*` (which powers the web UI and is
same-origin-only for the routes that carry a browser cookie). Everything under `/v1` is public,
CORS-open (`access-control-allow-origin: *`), and stable within the `v1` line — a breaking change
gets a `v2`, not a silent change under caller's feet.

## 2. Agent Contract

- **No API key to quote, build or execute.** Those endpoints are open. Pass the wallet that
  will sign in the `wallet` field, and you get back bytes that are worthless until that wallet
  signs them: the product is non-custodial end to end, so there is nothing a key would be
  protecting.
- **One read needs proof of the wallet: `GET /executions`, the history list.** It returns what we
  stored about that wallet's swaps (route, receiver, gain), so writing the wallet in the query is
  not enough: send a machine credential issued to that wallet. No credential is
  `401 authentication_required`; another wallet's credential is `403 wallet_not_owned`.
  `GET /executions/{id}` stays open: the `id` is only handed to whoever recorded the swap, and it
  answers that swap's status. `POST /quote` and `POST /multi-quote` without a `wallet` still answer, but the
  quotes are *indicative* — real routes and real pricing, with a `quotes[].id` that cannot be
  built into a plan, because the handoff is stored against a wallet.
- **A machine credential is optional**, and worth having when you serve many users from one
  egress address: it moves your limit from the per-IP cap to the credential's own budget. Send it
  as `Authorization: Bearer vswap_<id>_<secret>`.
- **`wallet` is required for every EVM build, submission, refund and history call.** It declares
  which address will sign and scopes persisted handoffs/history; it is not authentication, which
  is why the history list asks for a credential on top of it. Quote
  and multi-quote accept it optionally, and only quotes carrying it can be built later by id.
- **Custody never changes hands.** This API builds calldata and EIP-712 typed data; it never asks
  for a private key or seed phrase, and rejects any request body that looks like one
  (`400 secret_in_payload`) before touching the database. The agent signs and sends everything
  itself.
- **Idempotency**: `POST /executions` is safe to retry with the same `txHash` — it looks the
  transaction up by `(chainId, txHash)` first and returns the existing record instead of erroring.
  `POST /swap` and `POST /swap/{buildId}/refresh` are not idempotent by design: each call is a
  fresh build with its own `buildId`, because the market moves between calls.
- **Rate limits are per-IP by default**, and per-credential-budget when you send one. The per-IP
  caps, per minute: 12 for builds (`/swap`, `/swap/{buildId}/refresh`, `/multi-quote/build`,
  `/orders`), 20 for writes (`/executions`), 30 for reads (`GET /executions/{id}`), 10 for
  `/ethflow/refund` and `/invoices`, 6 for `/payouts` (100 a day), 12 for `/payouts/charge`. A `429` means back off, not retry-immediately-in-a-loop:
  `rate_limited` carries `details.retryAfter` and the `Retry-After` header, the same number of seconds until that window turns.

## 3. Common Rules

### 3.1 Auth

Only the history list (`GET /executions`) requires a credential. Everywhere else it is optional.
The `wallet` field never authenticates anything: it says which wallet signs, and the signature, or
a credential issued to that wallet, is the proof.

**How to get one, concretely.** Open `https://swap.vurto.fi`, connect the EVM wallet the
credential should belong to, sign in, then open the wallet panel (top right) and click the key
icon on that wallet's card. Name the credential, pick the scopes, and issue it. **The secret is
shown once**: copy it there or revoke and issue another.

Issuance is proven by an EIP-191 signature from the wallet over a one-time challenge, never by a
password. The screen is the easy path; a script that holds the wallet's key can do the same three
calls: `POST /api/auth/challenge` with `{wallet, chainId}`, sign the returned `message` with
EIP-191 (`personal_sign`), then `POST /api/credentials` with `{challengeId, message, signature,
label, scopes, ttlDays}`. Both routes compare the `Origin` header with `https://swap.vurto.fi`;
that is a CSRF defense for browsers, not authentication, so send it from a script and the
signature still decides. If you are integrating on behalf of someone else's wallet, they issue it
and hand you the token.

Listing and revoking credentials (`GET /api/credentials?wallet=`, `DELETE /api/credentials/<id>`)
need the same proof: the signed browser session of that wallet, or one of its credentials. Without
it, `401`; with another wallet's, `403`. A credential revokes only itself
(`DELETE /api/credentials/<its own id>`); revoking another one, or all of them, needs the signed
session (`403 session_required`), so a leaked read-only credential cannot take the others down.

Once you have one:

```
Authorization: Bearer vswap_<id>_<secret>
```

Credentials carry scopes (`read`, `build`) and a budget of 240 cost units per rolling 60-second
window. Cost per call: quote=4, build=8 (`/swap`, `/swap/{buildId}/refresh`), token=3, balances=2,
everything else=1. `403 scope_required` means the credential you have doesn't cover this call;
`429 budget_exhausted` means you're over budget for this window.

### 3.2 Amounts

- `amount` (request only): human decimal string, e.g. `"1.5"`. Converted server-side using the
  real token decimals.
- `amountRaw` / every response amount field (`amountIn`, `amountOut`, `minimumAmountOut`,
  `platformFeeAmount`, balances, etc.): raw integer string in the token's smallest unit. Parse as
  a bigint, never as a float — these regularly exceed float53 precision for 18-decimal tokens.

### 3.3 Tokens: address or symbol, never a silent guess

`tokenIn`/`tokenOut` in `POST /quote` and `POST /swap` accept a contract address or a symbol
(case-insensitive). A symbol that matches more than one token on that chain (a bridged variant,
usually) returns `409 ambiguous_token` with every match in `error.details.candidates` — the API
never silently picks the first one, because that decides where real money goes. Re-issue with the
address you meant.

`quotes[].approvalTarget` is the spender the approve step of the build will grant the allowance to
(the same address as `steps[].spender`), so pre-approving it is safe. It is `null` only when there is
nothing to approve (native input token). If it would change between quote and build, the build
refuses with `approval_target_changed` and asks for a fresh quote.

### 3.4 Ranking

`POST /quote`'s `quotes[]` array is sorted by `netValueUsd` (output value minus estimated gas minus
platform fee), not by raw `amountOut`. The provider with the biggest number out isn't always the
best deal once gas is priced in — that's the whole point of a meta-aggregator.

All routes in a round deliver the SAME output token, so the unit price of that token is the same
for every one of them: we normalise it before ranking. Ranking by each provider's own USD would let
a route that delivers fewer tokens win on a friendlier price feed, which is a real bug we shipped
and fixed on 15 Sep 2026.

Each quote also carries `estimatedGas`, the gas in UNITS behind that same `gasUsd`. Rank in units
against the `gasPrice` you read yourself if you prefer your own model; a route without the field is
one where we could not price gas ourselves, and treating it as free would be an advantage by
omission.

### 3.5 Route switched under you, and how you are told

A build can fall back to the next credible route when the provider you picked refuses with a
request limit. That refusal is about who is calling, not about the pair or the wallet, and no
amount of waiting fixes it; any other failure still aborts the build.

Switching the route is acceptable. Switching it **silently** is not. When it happens you get
`routeSwitch: { from, to, reason }` on the plan, and on the basket you get it per leg inside
`legs[]`, because the fallback is per leg there. **If you show a route to a human, surface this
before you ask for a signature.** The CLI prints it before the first step for the same reason.

`details.fase` on an error says which phase produced it, `cotacao` or `montagem`. The same
`provider_rate_limited` code means "that provider sat this round out, the others priced the pair"
while quoting, and "your swap died" while building. Do not reuse one sentence for both.

### 3.6 Response error shape

```json
{ "error": { "code": "insufficient_balance", "message": "...", "details": {} } }
```

Match on `code`. `message` is safe to show a human, but it's not a stable contract. `details` is
only present on some errors (`ambiguous_token`, `slippage_exceeded`, `route_changed`) and its
shape depends on `code` — see the OpenAPI spec or §11 below.

## 4. Command Index

- `GET /health` — liveness
- `GET /chains` — supported networks
- `GET /tokens?chainId=` — curated token list
- `GET /token?chainId=&address=` — resolve an arbitrary address on-chain
- `GET /balances?chainId=&wallet=` — wallet balances, native + every curated token
- `POST /quote` — ranked routes, no auth required (indicative without a `wallet`)
- `POST /swap` — build a signable/sendable plan
- `POST /swap/{buildId}/refresh` — rebuild with fresh pricing, slippage ceiling enforced
- `POST /multi-quote` — quote an N:N basket (N inputs funding M outputs), no auth required (indicative without a `wallet`)
- `POST /multi-quote/build` — build one atomic transaction executing every leg of an N:N basket
- `POST /destination/challenge` — text the paying wallet signs to send the output to another wallet (§5.2)
- `POST /destination/authorize` — hand over that signature; without it a third-party `receiver` is refused
- `POST /orders` — submit a signed CoW order
- `POST /executions` — record a sent transaction
- `GET /executions` — list this wallet's history: `{ items, totalGainUsd }`, each item with `provider`, `gainUserUsd` (what the route delivered above the runner-up, after our fee; `null` when there was none) and `legProviders` for N:N baskets; `totalGainUsd` is the lifetime sum over confirmed executions
- `GET /executions/{id}` — re-check a recorded execution's on-chain status
- `POST /ethflow/refund` — build a refund for an expired, unfulfilled ETH-flow order
- `POST /report` — report a problem, no auth required
- `POST /warm` — tell us the pair before you have an amount, so the next quote is warm
- `POST /invoices` — create an invoice (payment request), no auth and no signature required (§5.11)
- `GET /invoices/{id}` — read an invoice; pending payments are re-checked on-chain
- `POST /invoices/{id}/pay` — build the plan to pay it, from any token the payer holds
- `POST /invoices/{id}/payments` — hand over the payment hash; the server verifies it on-chain
- `POST /invoices/{id}/analysis-payment/transfer` — build the paid-analysis payment: the invoice creator's charge, or, with `checks`, the payer buying the receiver analysis (§5.12)
- `POST /invoices/{id}/analysis-payment` — hand over the paid-analysis payment; the server verifies it on-chain

Batch payouts (§5): `POST /payouts`, `POST /payouts/charge`, `POST /payouts/charge/transaction`, `POST /payouts/reuse`, `POST /payouts/payments`. Screening: `GET /screening/{wallet}`.
Check, a paid analysis of any wallet on the networks and paid tools you choose, each tool at its own price (§5.13): `GET /check`, `POST /check/wallet`, `POST /check/buy/challenge` and `POST /check/buy/proof` (the paying wallet signs and passes the free screening before buying), `POST /check/charge` (with that purchase proof), `POST /check/payment`, `POST /check/analysis`, `POST /check/result`, `POST /check/status` (by the Check id, no proof), and `GET /check/credits` (by wallet, with the payer's Check access from `POST /check/access/challenge` and `POST /check/access`).

Solana (§6): `GET /v1/svm/chains`, `GET /v1/svm/tokens`, `GET /v1/svm/token`,
`GET /v1/svm/balances`, `GET /v1/svm/prices`, `POST /v1/svm/quote`, `POST /v1/svm/warm`,
`POST /v1/svm/swap`, `POST /v1/svm/multi-quote`, `POST /v1/svm/multi-swap`,
`POST /v1/svm/execute`, `GET /v1/svm/tx`, `POST /api/svm/history`, `GET /api/svm/history`.
`GET /api/svm/history` is the one that is not open: it lists what we stored about a Solana
wallet, so it answers only to the browser session that wallet signed (SIWS), `401` without it.

## 5. Commands and Examples

### 5.1 Quote

```bash
curl -sS https://swap.vurto.fi/v1/quote \
  -H 'content-type: application/json' \
  --data '{
    "chainId": 42161,
    "tokenIn": "USDC",
    "tokenOut": "WETH",
    "amount": "100",
    "slippageBps": 50,
    "wallet": "<the EVM address that will sign>"
  }'
```

Returns `{requestId, resolved, quotes[], bestQuoteId, failures[], indicative, refreshedAt}`. Each
entry in `quotes[]` carries `executionKind` (`transaction` | `order` | `onchain_order`) telling
you upfront whether execution needs a transaction, an off-chain EIP-712 signature (CoW selling an
ERC-20), or a transaction that only registers an order (CoW ETH-flow, selling the native asset).

### 5.2 Build a plan

With a specific route:

```bash
curl -sS https://swap.vurto.fi/v1/swap \
  -H 'content-type: application/json' \
  --data '{
    "wallet": "<the EVM address that will sign>",
    "chainId": 42161,
    "quoteId": "<id from a prior /quote>"
  }'
```

Or skip straight to the best route in one call. When it picks the route itself, a route with GAIN comes first; if the first round has none, it re-quotes up to 3 rounds total (1.5 s apart) before falling back to the best route without gain, the same rule as Invoice. When the first round has no gain this costs up to two extra quote rounds plus 3 s of pauses, about 7-8 s more measured on Base on 02/10/2026; with gain in the first round it costs nothing.

```bash
curl -sS https://swap.vurto.fi/v1/swap \
  -H 'content-type: application/json' \
  --data '{
    "chainId": 42161, "tokenIn": "USDC", "tokenOut": "WETH", "amount": "100",
    "maxSlippageBps": 100, "wallet": "<the EVM address that will sign>"
  }'
```

The response is a `SwapPlan`: `buildId`, `buildHash`, `validUntil` (10 minutes out),
`simulation.status`, and `steps[]` in the order to execute them. See §7.

`maxSlippageBps` is optional and, once set, becomes a ceiling that
`POST /swap/{buildId}/refresh` can never loosen for this build's lineage — see §8.

#### Delivering to a different wallet

Pass `receiver` on `POST /quote` (or `POST /swap` when quoting and building in one call) to have
the output delivered to an address other than the one that signs:

```bash
curl -sS https://swap.vurto.fi/v1/quote \
  -H 'content-type: application/json' \
  --data '{
    "chainId": 42161, "tokenIn": "USDC", "tokenOut": "WETH", "amount": "100",
    "wallet": "<the EVM address that will sign>",
    "receiver": "0x71A9Aa12f70eC8E8541f1D79399beAa59e585C18"
  }'
```

Only providers that support a receiver different from the signer are returned —
check `supportsReceiver` on each quote. Every provider that can be quoted today supports it:
velora, kyberswap, cowswap, 1inch, all five direct pools, uniswap, aerodrome, sushi,
pancake and quickswap, and the composed route composto. Direct pools support it as a family, because the swap sends the output
wherever the build says, so a new direct pool arrives with the capability already.
On Solana, jupiter_router and the pool readers orca and meteora honor `receiver`;
raydium refuses an account other than the signing wallet, and so does the meta-aggregator
jupiter_meta. Solana quotes carry `supportsReceiver` too, so read it there exactly as you
read it on EVM instead of hardcoding that list.

One Solana-only refusal, hard and by design:

- **Selling into native SOL with a separate destination is impossible on every provider**
  (`400 receiver_native_sol_unsupported`), in the 1:1 swap and in the N:N basket alike.
  Delivering SOL means closing the wrapped-SOL account, and closing sends the balance and the
  rent to whoever signs. Ask for wSOL if the output must reach a third party.

**The Solana N:N basket honors a per-leg `receiver`**, the same field as on EVM: each output leg
can go to a different wallet, so one signature pays several addresses. Every leg's destination
account is derived and opened the same way as in the 1:1 swap, and a leg delivered to a third
party carries no Vurto fee, because the fee would have to be taken from an account the signer
does not own. On EVM the basket honors the same field through the VurtoSwapRouter.

The destination account is derived by us from the wallet address you pass; you never send a token
account. On jupiter_router the build also opens the recipient's associated token account when it
does not exist, paid by the signer and owned by the recipient.

When building with an existing `quoteId`, the receiver from that quote is used; `receiver` on
`POST /swap` only applies to the one-call quote+build path.

**Destination lock: a third-party `receiver` needs the paying wallet's signature.** Since
15/10/2026 every build (swap, double, N:N, EVM and Solana) refuses a `receiver` different from the
signing wallet with `403 destination_not_authorized`, unless that wallet signed an authorization
for that exact address on that chain. No header or flag replaces that signature; the only other
destination accepted is the recipient of an open invoice you name with `invoiceId` (below).

1. `POST /destination/challenge` with `{ wallet, receiver, chainId }` returns `{ nonce, message,
   expiresAt }` (and `proofTransaction` on Solana). The text names the full receiver and the chain.
2. The owner of `wallet` signs it. On EVM either `message` with EIP-191 `personal_sign`, or the
   returned `typedData` (EIP-712, the same fields, legible in the wallet), which is what
   `@vurto/sign-tx` signs: MCP `prepare_signing` with a `signature` step carrying that `typedData`,
   or the CLI `vurto-swap destination`. On Solana, ed25519 `signMessage` over `message` (the raw UTF-8
   bytes, or the Solana off-chain message envelope a Ledger signs: legacy, v0 or v1 with `message` as the
   body, also as the `1 + signature + serialized message` envelope), or, for a Ledger that cannot sign
   messages, the `proofTransaction`, which is verified and never broadcast.
3. `POST /destination/authorize` with `{ wallet, receiver, chainId, nonce, message, signature }`
   (or `transaction` instead of `signature`). The authorization lasts until `expiresAt` (30
   minutes), works for that wallet + receiver + chain only, and each code works once.

Then quote and build as usual. Paying an invoice is the one exception: pass `invoiceId` on
`POST /quote` (or `POST /swap`) and the invoice recipient, open and on the same chain, is accepted as
`receiver` without this signature.

The build also reads, from the calldata it is about to return, who receives the output and the
fee, for every provider; a beneficiary that is not the signer, the authorized destination, the
Vurto fee address or a forwarding contract fails with `502 beneficiary_not_allowed`, and a format we
cannot read fails with `502 beneficiary_unreadable`. Nothing is returned for signing in either case.

Smart-contract wallets (Safe and other EIP-1271 wallets) authorize the same way: send the signature
the wallet produces, and the server asks the wallet contract (`isValidSignature`, on the chain of
the request) whether it is valid, for the hash of `message` or of `typedData`.

On velora, kyberswap, 1inch and 0x routes the output check is mandatory: the build simulates the
swap and measures what the receiver gets, native output included, and refuses with
`503 output_check_unavailable` if two spaced attempts cannot measure it. Call again; nothing was
built. Direct-pool routes, whose calldata we build ourselves, are unchanged.

**Need the calldata before the approval exists?** Send `"calldataSemSimulacao": true`. It is an
opt-in and it only works on DIRECT-POOL routes, the ones we read from the pool ourselves. It exists
for integrators that simulate on their own before listing a route, which is how aggregator adapters
work: they quote and assemble inside the same call, and a route with no calldata cannot even be gas
estimated, so it drops off their list.

What it changes: neither a missing allowance nor a short balance stops the build any more, so you
get `steps[]` with the approve AND the transaction. What it does not change: `simulation.status`
comes back untouched, saying `approval_required`. Nothing was verified by us on that path, and that
is the point. **You simulate.**

The default stays off, and with it off the rule is the one we have always had: a simulation that did
not pass comes with no transaction to sign. Relaying an aggregator's calldata unsimulated stays
refused in either case, because there what would be missing is the provenance, not just the proof.

### 5.3 N:N — basket swaps

N input tokens funding M output tokens in **one atomic on-chain transaction**, not a sequence of
independent swaps. The backend runs a waterfall allocation deciding which input finances which
output, then quotes the real `tokenIn -> tokenOut` route for each resulting slice through the same
provider fan-out `POST /quote` uses. This is not decomposable into separate `POST /quote` calls —
the allocation itself is the thing being computed.

```bash
curl -sS https://swap.vurto.fi/v1/multi-quote \
  -H 'content-type: application/json' \
  --data '{
    "chainId": 42161,
    "wallet": "<the EVM address that will sign>",
    "inputLegs": [{"tokenIn": "USDC", "amount": "100"}, {"tokenIn": "DAI", "amount": "50"}],
    "outputLegs": [{"tokenOut": "WETH", "outputPercent": 60}, {"tokenOut": "WBTC", "outputPercent": 40}],
    "slippageBps": 50
  }'
```

- `inputLegs[]` — what you sell: `tokenIn` (address or symbol) plus `amount` or `amountRaw`, same
  rules as `POST /quote`.
- `outputLegs[]` — what you want back, as `outputPercent`: an **integer percent of the TOTAL basket
  value**, not a fixed amount, because the actual split depends on the allocation. Every
  `outputLegs[].outputPercent` in the request must sum to exactly 100. Each leg can optionally set
  its own `receiver`.
- Up to 10 combined input+output legs; the waterfall never produces more than
  `inputLegs.length + outputLegs.length - 1` real on-chain legs.
- CoW is never a candidate route for a leg — an off-chain EIP-712 signature or a separately-settled
  ETH-flow order can't be one leg of a single atomic transaction, so every leg here executes as a
  transaction.

Returns `{requestId, quoteId?, chainId, wallet, pivot, legs[], failures[], indicative, expiresAt,
refreshedAt}`. `quoteId` is present when the request carries `wallet`; without a wallet the result
is indicative and has no buildable handoff. Each
entry in `legs[]` is a real quoted leg — `legIndex`, `inputLegIndex`/`outputLegIndex` (which request
leg it came from), `tokenIn`/`tokenOut`/decimals, `amountIn` (this leg's actual allocated share, not
the full `inputLegs[]` amount), and the full `NormalizedQuote` under `.quote`. `failures[]` lists
any slice that found no route — a partial basket is possible and reported, never silently dropped.
`pivot` is the internal USDC reference address the allocation prices everything against; it plays
no role in execution.

Building is a separate call. To build the basket just inspected, pass its `quoteId` and the same
`wallet`:

```bash
curl -sS https://swap.vurto.fi/v1/multi-quote/build \
  -H 'content-type: application/json' \
  --data '{
    "wallet": "<the EVM address that will sign>",
    "quoteId": "<id from /multi-quote>"
  }'
```

You may omit `quoteId` and send `chainId`, `inputLegs`, `outputLegs` and optional `slippageBps`
again for a one-call quote+build. That path obtains one fresh basket quote before building it.

Returns `{buildId, buildHash, wallet, chainId, router, validUntil, legs[], simulation, steps[],
refreshedAt}`. `steps[]` holds one `approve` per **distinct** input token that still needs
allowance, followed by one `transaction` step executing every leg atomically. The approve `spender`
is `router` (the VurtoSwapRouter address for this chain) — **not** each leg's underlying provider,
because the router pulls every input token itself inside one contract call; approving providers
individually the way a plain `POST /swap` plan does would approve the wrong address here. If
`simulation.status` is `approval_required`, send the approve step(s) first and call this endpoint
again for the executable transaction.

The build response includes the basket `quoteId`. After sending its single `transaction` step,
record it through `POST /executions` exactly like a plain swap; the server materializes the basket
and its per-provider legs from the immutable build. There is no refresh endpoint for N:N (unlike
`POST /swap/{buildId}/refresh`) — rebuild by calling `POST /multi-quote/build` again with the same
intent or a still-live `quoteId`.

### 5.4 Refresh a plan

```bash
curl -sS https://swap.vurto.fi/v1/swap/<buildId>/refresh \
  -H 'content-type: application/json' \
  --data '{"wallet": "<the EVM address that signed the build>", "slippageBps": 100}'
```

Returns a new `SwapPlan` with a new `buildId`, plus a `slippageBps` field: how many bps the output
dropped versus the *original* build in this refresh chain (0 if it didn't get worse). See §8 for
the full contract.

### 5.5 Submit a signed CoW order

Only for a plan whose `steps[]` contains `{"type": "signature", ...}`. Before signing, check the order:
`typedData.message.receiver` is the wallet or the receiver you asked for, the sell amount (plus `feeAmount`) is within
what you asked to sell, and the partner fee recipient is the Vurto fee wallet, read from `appDataString` (the step
carries it since 18/11/2026), whose keccak256 must equal `typedData.message.appData`. Sign `typedData` with the
wallet (EIP-712), then:

```bash
curl -sS https://swap.vurto.fi/v1/orders \
  -H 'content-type: application/json' \
  --data '{
    "wallet": "<the EVM address that signed the order>",
    "chainId": 42161,
    "quoteId": "<from the plan step'"'"'s submit.bodyTemplate>",
    "signature": "<the EIP-712 signature you just produced>"
  }'
```

`chainId` and `quoteId` come straight from `steps[].submit.bodyTemplate`; add `wallet` and the
signature you produced. Returns `{id, uid, buildHash, correlationId}`; `uid` is
the CoW order id (56-byte hex), there's no transaction hash for an off-chain order — cite `uid` in
support requests.

### 5.6 Record a sent transaction

```bash
curl -sS https://swap.vurto.fi/v1/executions \
  -H 'content-type: application/json' \
  --data '{
    "wallet": "<the EVM address that sent the transaction>",
    "txHash": "0x...",
    "quoteId": "<the quoteId this build came from>"
  }'
```

Only for the swap's `transaction` plan — CoW order submissions record themselves via
`POST /orders`. Never call `POST /executions` for an `approve` step: approval calldata is not the
swap calldata stored in the build and will be rejected. The server independently confirms the transaction on-chain (via `rpc.vurto.fi`)
and checks its calldata hash against a build you own before writing anything; it does not trust
the caller's word for what happened.

### 5.7 List and re-check history

```bash
curl -sS 'https://swap.vurto.fi/v1/executions?wallet=<your EVM address>' \
  -H 'authorization: Bearer vswap_<id>_<secret>'

curl -sS 'https://swap.vurto.fi/v1/executions/<id>?wallet=<your EVM address>'
```

The first call needs a credential issued to that wallet (§3.1); without it the answer is `401`.
The second call re-polls the on-chain receipt (and, for a CoW ETH-flow transaction, the CoW
orderbook — a confirmed ETH-flow transaction only means the order was registered, execution
happens later by a solver, or never).

### 5.8 ETH-flow refund

For an expired CoW order that sold the chain's native asset and never got filled:

```bash
curl -sS https://swap.vurto.fi/v1/ethflow/refund \
  -H 'content-type: application/json' \
  --data '{
    "wallet": "<the EVM address that created the order>",
    "chainId": 42161,
    "txHash": "<the original ETH-flow transaction hash>"
  }'
```

Returns a transaction ready to send that returns the funds. Fails `403 refund_not_yours` if the
original transaction wasn't sent from the wallet you passed.

### 5.9 Warm a pair before you quote it

On Solana two of the four venues, Orca and Meteora, are not APIs: we compute
their price from pool state read live from the chain. That read is the slowest
thing in a quote, and a quote will not wait forever for it — so a cold pair
can answer with the two API-backed venues instead of all four.

`POST /warm` and `POST /v1/svm/warm` say "I am going to ask about this pair".
They return immediately and do the reading in the background. Call it the moment
you know the pair, before you know the amount: the seconds you spend deciding
how much are exactly the seconds the read needs.

```bash
curl -sX POST "$BASE/v1/svm/warm" -H 'content-type: application/json' -d '{
  "chainId": "solana-mainnet",
  "tokenIn": "So11111111111111111111111111111111111111112",
  "tokenOut": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "tokenInDecimals": 9, "tokenOutDecimals": 6, "amountIn": "0", "slippageBps": 50
}'
# {"warming":true}
```

`amountIn` may be `"0"`: the amount does not change which pools are read.

The EVM side also has pool-backed routes: Uniswap, SushiSwap, PancakeSwap, Aerodrome, QuickSwap and the two-hop composto read
through our RPC adapters. A `composto` quote carries `venues`, the exchanges it crosses in
order, one entry per hop with its own `tokenIn`/`tokenOut`; routes that stay inside one
exchange omit the field. Use it when you need to know which exchange actually supplied the
liquidity, which is not the same as the `provider` that quoted. `POST /warm` primes the pair's route/pool work there, while
`POST /v1/svm/warm` primes Orca and Meteora. Both calls return immediately, are optional, and make
the next quote more likely to include every eligible direct venue.

### 5.10 Report a problem

```bash
curl -sS https://swap.vurto.fi/v1/report \
  -H 'content-type: application/json' \
  --data '{
    "message": "POST /swap returned insufficient_balance for a wallet with a real balance.",
    "source": "agent",
    "chainId": 42161,
    "context": {"quoteId": "...", "provider": "velora"}
  }'
```

Works with no credential at all, like everything else — whoever is stuck is exactly who most
needs this. Rate-limited 5 per 5 minutes per IP. Returns `{id, received: true}`; cite `id` if you
follow up elsewhere.

### 5.11 Invoices: get paid in any token

An invoice is a payment request: network, token, amount, receiving wallet. It gets an id people can
read aloud and copy (`INV-7K3M-Q9XA`, base32 without the letters that look like digits), a link
(`https://swap.vurto.fi/i/<id>`, which previews with the QR on WhatsApp and Telegram) and a QR PNG.
The payer can pay with ANY token on that network. Same for EVM and Solana; MCP tools
`invoice_create`, `invoice_get`, `invoice_pay`, `invoice_report_payment` map one-to-one to the four
calls below.

On Solana a common invoice also has `solanaPayQr`: a Solana Pay transaction request,
`solana:https://swap.vurto.fi/api/solana-pay/<id>`. `GET /api/solana-pay/<id>` returns `{label, icon}`,
`POST /api/solana-pay/<id>` with `{"account": "<payer>"}` returns `{transaction, message}`, built by the same path as
the paying screen (screening, the paid analysis, the split and the payment mark); the invoice turns paid once the
network shows that payer's transaction with the mark, without a report. A private invoice refuses it
(`409 private_invoice_vault_only`), and on EVM there is none: the QR opens the invoice link.

```bash
curl -sS https://swap.vurto.fi/v1/invoices -H 'content-type: application/json' \
  --data '{"chainId": 8453, "recipient": "0xRECEIVER", "token": "USDC", "amount": "100", "memo": "rent"}'
```

**Pay a Vurto user (`@handle`)**: `recipient` (and `wallet` in a batch row) also takes `"@handle"`. The Vurto Profile picks one
of that user's wallets on the invoice's network: a random one among the wallets they marked for that kind of transfer (regular,
or private with `confidential`), the main wallet when none is marked. The rotation only moves when a payment is confirmed on the
network, so creating invoices without paying returns the same wallet. The invoice answers with `recipientHandle: "@handle"`, and
every check (free screening, fee-wallet refusal, `recipient_not_a_wallet`) runs on the wallet picked. On a regular invoice the
payment transaction carries that wallet, so whoever pays sees it in their wallet and on-chain; only a private invoice keeps it
from the payer. `400 recipient_unavailable` is the same answer for a handle that does not exist and one with no wallet on this
network; `503 recipient_handle_unavailable` means try again or use the address.

```bash
curl -sS https://swap.vurto.fi/v1/invoices -H 'content-type: application/json' \
  --data '{"chainId": 8453, "recipient": "@loja_ana", "token": "USDC", "amount": "100"}'
```

Private invoices are paid through the Vurto Private Contract. `"confidential": true` creates one where
that contract is published for the network and token; elsewhere it is refused with
`400 private_coming_soon` and nothing is created. Only the boolean `true` asks for it: any other value
except `false` is refused the same way, so a string never becomes a common invoice you think is private.
A private invoice takes no `payerChecks` (`400 private_invoice_checks`). Since 28/11/2026 the private contract runs ONE paid analysis on both wallets, besides the free screening that always runs: the creator sends `confidentialChecks` as `["merkle-science"]` or `["crystal"]`. Both together and `scorechain` are `400 invalid_private_checks`. Crystal needs the approved KYC of whoever configures (the signed creator wallet, or a `POST /v1/kyc/proof` in `X-Wallet-Proof`): without it `403 kyc_required` (`401 kyc_wallet_signature_required` with no proven wallet). Absent or `[]` is Crystal when the creator has that KYC on an EVM network, else Merkle Science. The payer does not choose and needs no KYC for Crystal to run. The fee is two consultations of that analysis (payer and receiver), US$ 0.80 today, read from the price variables; the minimum is that fee plus one withdrawal analysis (US$ 0.40), so the note pays its own withdrawal, rounded up to the whole dollar: US$ 2 today. An invoice created before 28/11/2026 keeps the analyses and the price it was quoted with. The entry refuses a wallet from the risk score `CORTE_DE_RISCO_DO_COFRE` on (50). Anything else is `400 invalid_private_checks`, and `confidentialChecks` on a non-private invoice is refused the same way. A chosen tool Vurto switched off falls to the other one. On Solana the private contract never uses Crystal (since 25/11/2026): Merkle Science runs and is
charged there, a `crystal` named is dropped and said back in `skippedChecks`, and the minimum is the one without it
(with Merkle Science off, a private invoice there is `400 private_coming_soon` and an entry `400 vault_network_unsupported`); with neither on, `503 private_contract_unavailable`. The private contract asks the payer's KYC above the no-KYC limit (`PRIVADO_SEM_KYC_ATE_USD`, below) per paying
wallet in 24 hours (below that the payer's paid analysis is the reading of where the money comes from), whichever tool is chosen;
whoever receives always needs a KYC to withdraw. Crystal adds no requirement of its own on the payer. On an EVM network where the `VurtoPrivateSplit` is published (since 18/11/2026; one address per
network in `contracts/publicados.json`, tipo `private-split`), its fee comes out of the amount inside the same transaction
that deposits the rest into the contract, with no separate charge: at most 10% of the amount plus US$ 1.20, the contract's
own ceiling, and never more than the fee the page shows. Elsewhere, and whenever that contract is not available for the entry
(paused, or not switched on for that network or token), the fee is charged at the contract entry, before the deposit; the page
shows which. The Dead Alive private donation pays the same way. Since 19/11/2026 the page signs the fee of ANY private invoice, the
private donation included, only up to 2% of the amount plus US$ 2.40 and below it, fixed in the page and with no donation mark from
the server: the private invoice charges its two consultations (at most US$ 2.70, with the three, from its minimum of US$ 54) and the
private donation only the channel's choice of analyses, with no percentage since 28/11/2026 (at most US$ 1.35, with the three), both inside it at any amount. A private donation whose fee would pass that ceiling (the private donation rate
`ALIVE_FAIXAS_PRIVADA` raised above 2%) is not created: `503 private_donation_fee_above_ceiling`, with `details.maximumFee` (the ceiling at that amount).
It is paid ONLY on its page (the `url` of the invoice): whoever pays connects the paying wallet and enters the contract with the
invoice amount, token and owner. Since 01/12/2026 the payer signs NO message there (owner: the only message a payer signs is the
KYC's, above the no-KYC limit): the page declares the connected wallet (`payer`), the risks and terms are accepted with a click
(`terms_not_accepted` 409 gives `details {version, sha256, page}`; the page sends `terms` with them), and the network ties the wallet
to the payment: the analysis fee is measured as sent by it, the VurtoPrivateSplit runs its analyses only after its approve of the total
is on the chain, and the ticket and the split authorization fix it as the only sender of the deposit.

**The recipient is always a Vurto user** (since 28/11/2026): on the private contract (a private invoice, Send Privately) the
recipient is a `@handle`, or an address that belongs to an active Vurto profile (a live wallet of an active user, not `so_paga`, not
blocked). Creating a private invoice to an address that is not (asked only after every other rule of the request passed) and
opening the contract entry of Send Privately to one answer `400 recipient_not_vurto_user` before anything is written, charged,
reserved or analysed. Opening the entry of a private invoice made to such an address (one made before this rule included) answers
`409 invoice_unavailable`, the same answer as every refusal about the receiver the invoice hides. The Vurto Profile answers only yes or
no: nobody learns whose wallet it is. When it cannot be asked, `503 recipient_check_unavailable` (never accepted without knowing); its
own rate limit is `429 rate_limited`. A regular invoice
to any address is unchanged, and a Dead Alive private donation pays the streamer's own wallet. A private invoice to `@handle` is
asked too, because the wallet the handle resolved to may have left the profile since: the payer gets `409 invoice_unavailable`. The
ticket (`POST /api/cofre/entrada/bilhete`) asks again for every private entry that has not deposited yet, including one whose analysis
fee already left the payer's wallet and one opened before the rule: `400 recipient_not_vurto_user` (`409 invoice_unavailable` paying an
invoice), `503 recipient_check_unavailable` with the Profile down. An entry already deposited is never refused. There is no lookup of an address while typing: the page shows the same phrase in the recipient field when the server refuses.

**The no-KYC limit of the payer** (since 28/11/2026): a paying wallet without an approved KYC (its own or inherited from its Vurto
Profile) enters the private contract (a private invoice, Send Privately, a Dead Alive private donation) while what it put in over the
last 24 hours, plus this payment, stays at or below `PRIVADO_SEM_KYC_ATE_USD` (a system variable: `limitUsd` in the answers below is its value today), counted in dollars of the stablecoin that
enters (the total, the analysis fee inside it; never the token held before a swap). The wallet is kept only by a blind index, never
its address. A payer with the signed session of the wallet (the KYC's sign-in) reserves its amount when the entry opens; a payer that
only declared the wallet (no signature, since 01/12/2026) reserves it at the ticket (`POST /api/cofre/entrada/bilhete`), once the
network tied the wallet (the fee it sent, or its approve to the split), so the entry tells nobody whether a wallet has a KYC nor how
much it paid. Two at once cannot pass together, and the reservation goes back when the entry expires without a deposit. Above it,
`403 kyc_required` with `details { side: "payer", reason, limit { limitUsd, usedUsd, remainingUsd, verify: "/api/kyc/session" } }`,
before any charge (at the ticket of a declared payer, after the fee and before the analyses): `reason` is the payer's KYC state
(`none`, `stale`, `declined`, ...). A declared payer whose payment alone is above the limit, or who chose Crystal on Send Privately,
gets `403 kyc_required` with `reason: "proof_required"` at the entry, before anything is read: sign in with the wallet (the KYC
signature) and ask again. With an approved KYC there is no limit. `GET /api/cofre/limite` (the signed session of the
wallet, family in `x-wallet-family`) answers `{ kyc, reason?, limitUsd, usedUsd, remainingUsd, windowHours }` for that wallet only;
`401 authentication_required` without the session. `POST /invoices/{id}/pay` answers `409 private_invoice_vault_only`, because a direct transfer
would show both wallets on-chain. Reading it gives `confidential: true`, `privateContract: true`,
`recipient: null` and `paidTx: null`.

Private invoices created before 14/10/2026 read with `confidential: true`, `privateContract: false`
and `recipient: null`, and can no longer be paid: `POST /invoices/{id}/pay` answers
`409 private_invoice_paused`. A paid one shows its `paidTx`, and that transaction shows the receiving
wallet to anyone who opens it.

Only VERIFIED tokens of the network can be requested, by address or symbol: a cloned "USDC" with its
own pool would let the creator sell a fake at whatever price that pool says, so it is refused with
`token_not_listed`. Creating and paying need no signature; the invoice history needs a signed-in
wallet and lives on the web app only.

Pay it:

```bash
curl -sS https://swap.vurto.fi/v1/invoices/INV-7K3M-Q9XA/pay -H 'content-type: application/json' \
  --data '{"payer": "0xPAYER", "tokenIn": "WETH"}'
```

- `method: "transfer"` when `tokenIn` is the invoice token (the default): a direct transfer built
  from the stored invoice. No fee, no gain, and the receiver sees the payer as sender.
- `method: "swap"` otherwise: `amountIn` is computed so the GUARANTEED minimum output covers the
  requested amount, through the route with GAIN when there is one (re-quoted up to three rounds
  looking for it), delivered straight to the receiver. The transaction is public and the payer signs
  it, so the receiver can see the paying wallet on-chain either way. Whatever
  lands above the requested amount is the receiver's. CoW is never used here: it settles through a
  solver, and the payment is verified from the payer's own transaction.
- `plan` has the shape of a `/swap` plan (EVM: `steps[]`, sign in order, approve first) or of a
  Solana build (one transaction; when it has no `executionRef`, broadcast it via `/v1/svm/execute`).
- `409 price_moved`: the build's minimum fell below the request between quote and build. Call again.
  `400 native_sol_only`: an invoice in SOL is paid in SOL (no provider delivers native SOL to another wallet). Holding
  another token? Swap it into SOL in the payer's OWN wallet first (`POST /v1/svm/swap` with `tokenOut` = the SOL mint and
  no `receiver`, sized so the guaranteed minimum covers the invoice amount plus the network fees), wait for it to land,
  then pay the invoice in SOL as usual (the screen does the same since 28/11/2026).

Then report the hash (EVM) or signature (Solana):

```bash
curl -sS https://swap.vurto.fi/v1/invoices/INV-7K3M-Q9XA/payments -H 'content-type: application/json' \
  --data '{"payer": "0xPAYER", "txHash": "0x...", "method": "swap"}'
```

The server reads the transaction on-chain and measures what reached the receiver in the invoice
token; the payer must be the signer and the transaction newer than the invoice. Pending until
mined, re-checked by `GET /invoices/{id}` (at most two per read, each at most every 15 seconds). An
invoice holds at most 5 pending payments and 30 unconfirmed ones; past that, `429 too_many_pending`
until the network confirms your transaction, and a confirmed payment is always accepted, so send the
hash again once it is mined. Only a confirmed payment reserves a hash, and a hash
pays one invoice (`tx_already_used`). Sign the transfer as returned: it carries a mark that ties the transaction to this invoice and this payer, so another invoice to the same recipient cannot claim it (the report there ends as `tx_for_another_payment`). A transaction with no mark, a transfer you build yourself, a native transfer or a provider's ready-made route, still counts, but the first report the network confirms wins, so another invoice to the same recipient can take it. If a transaction of yours ends as `tx_for_another_payment`, prove the wallet that sent it (`POST /v1/destination/challenge` with `receiver` = the invoice recipient, `chargeId` = the invoice id and `chargeTxHash` = the hash, then `/authorize`) and report the same hash again. A `"swap"` payment is also a swap: record it with
`POST /executions` too, as for any swap, so the payer's swap and its gain land in their history.

### 5.12 Payments: check a wallet, pay someone, never pay a sanctioned wallet

Vurto Payments has two sides: **Receive** (an invoice, section 5.11) and **Send** (pay someone by
their wallet). Both check wallets before money moves.

Check any wallet first, EVM or Solana:

```bash
curl -sS https://swap.vurto.fi/v1/screening/<WALLET>
```

Returns `verdict` (`passed`, `blocked` or `unavailable`) and each check: the OFAC SDN list on both
families; on Solana also the issuer freeze of USDC and EURC (Circle), USDT (Tether), PYUSD and USDG
(Paxos) and USD1 (World Liberty), the issuer freeze index, and a money trail up to three hops back.
MCP: `wallet_check`. CLI: `vurto-swap check --wallet <address> --chain <name|id>`.

Add `?chainId=<network>` (Solana addresses are read without it) and the answer gets `network.state`, the wallet read on
that network: `verified`, `no_activity`, `contract`, `not_a_wallet`, `invalid` or `unread`, with a `warning` when you should
confirm with the receiver. `POST /invoices`, `POST /payouts` and `POST /destination/challenge` read the destination the same
way. A token, a token account, a program or an invalid address answers `400 recipient_not_a_wallet` (with `details.index` in
a batch) and nothing is created. The other states do not stop anything: read `recipientCheck` (`recipientChecks` in a batch)
and show the `warning`. `unread` says nothing about the address.

**Send** is an invoice to the payee's wallet that you pay yourself: `POST /invoices` with
`recipient` set to their wallet, then `POST /invoices/{id}/pay`. Paying any invoice checks **both
wallets** before anything is built: the **paying** wallet (`403 payer_blocked`) and the
**receiving** wallet (`403 receiver_blocked`), so Vurto Payments never builds a payment for, nor
counts one from, a sanctioned or issuer-frozen wallet; `503 screening_unavailable` means one of them could
not be read yet, retry in a few seconds. Reporting the payment (`POST /invoices/{id}/payments`)
screens the payer again, the wallet the network proves signed it: a blocked payer gets
`403 payer_blocked` and the invoice does not count as paid. `wallet_check` runs the same check for
any wallet. Plain
swaps (`/swap`, `/multi-swap`) do not run this check, even with an `invoiceId`.

**Paid checks chosen by the creator (`checks` on `POST /invoices`): closed for new invoices** since 07/11/2026, on every
network (`400 paid_check_moved`): the analysis of the paying wallet goes in `payerChecks` (below). An invoice created before
keeps its charge: `analysis` (`status`, `checks`, `amount`, `token`, `to`) is paid by the creator with
`POST /invoices/{id}/analysis-payment/transfer` (`payer` = creator, else `403 not_invoice_creator`) and reported with
`POST /invoices/{id}/analysis-payment` `{txHash}`; until then paying answers `409 analysis_unpaid`. Paying then sends both
wallets to the chosen tools, at most 3 different payer wallets per invoice (`429 analysis_attempts_exceeded`), and a wallet
listed by Scorechain or a HIGH or CRITICAL Merkle Science risk refuses with `payer_blocked` or `receiver_blocked`. The public
`/screening` refuses every paid check (`400 paid_check_requires_invoice`), so a paid analysis never becomes a free lookup: to analyse
any wallet on its own, buy a Check (section "Check" below).

**Paid analyses, one fee for both wallets** (Solana, and EVM networks with `invoiceSplit: true` in
`GET /v1/chains`; without a contract, `400 split_not_available_on_chain`). Since 16/11/2026 every paid analysis is a fixed
price per consultation, one wallet read on one network (US$ 0.40 since 30/11/2026, https://docs.vurto.fi/fees), the same with one tool or two
and whatever the amount. An invoice created with `payerChecks` carries ONE analysis fee that covers both wallets, the payer and
the receiver: two consultations, US$ 0.80, deducted from the amount through the split (`split.rule: "flat"`). The minimum depends on the network's split contract and selected tools.
On EVM a new invoice is paid through the `VurtoInvoiceSplitV2` contract (`0x53090174b1C799aFc1901E226366583Fc7b3714F` on the
nine networks), which takes exactly the signed fee and at most 10% of the amount; an invoice created before 16/11/2026 keeps
its contract (`VurtoInvoiceSplit`, which takes at least 0.1%) and its rule (`brackets`, `analysis` or `percent`) with the fee it
was born with. The
payer sends the invoice amount; the receiver gets `split.receiverAmount`. A Vurto Dead Alive donation (`analysisOf: "payer"`
on the invoice, since 11/11/2026) is the one exception: its fee pays the paid analysis of the paying wallet only, and the
receiving wallet gets the free screening. Since 28/11/2026 the donation fee depends on how the streamer receives: 2% of the donation
straight to the wallet with no paid analysis; only the price of each paid analysis (no rate since 30/11/2026; 1% before) the streamer chose for the donor's wallet when
there is one (only the free ones, OFAC and issuers, cost nothing; Scorechain, Merkle Science and Crystal each add their price per
consultation; Scorechain is a paid choice since 18/11/2026, it ran free and always before); and on a private donation only the price
of those analyses, with no percentage. No floor. It is always deducted from the amount and the streamer gets the rest: the donor never adds
it on top ("Add The Analysis Fee" was removed on 30/11/2026; a donation created with it before keeps its amount). (From 16/11/2026 to 28/11/2026 it was 2% in every case.) `payerChecks` on the invoice says which ran (`[]` with the free ones only,
`["scorechain"]`, `["merkle-science"]`, `["scorechain", "merkle-science"]`, with `"crystal"` when the streamer chose it); the fee and the
split are there either way. Since 19/11/2026 the PUBLIC donation fee ceiling is the `VurtoPrivateSplit`'s, at most 10% of the amount
plus US$ 1.20 (in the token's units) and below the amount, on EVM and Solana alike (the private donation takes the ceiling of every
private invoice, 2% plus US$ 2.40, and its minimum from the `VurtoPrivateSplit`'s 10% plus US$ 1.20, leaving a note above the US$ 0.40 withdrawal analysis, rounded up to the whole dollar since 28/11/2026: US$ 2 with any choice), and a NEW
public EVM donation is paid through the
`pay`/`payWithPermit` of that network's `VurtoPrivateSplit` (one address per network, `contracts/publicados.json`, `tipo:
"private-split"`; its own EIP-712 domain `VurtoPrivateSplit` version `1` and its own signer, the same `Payment` type and `Paid` event as
the V2). Where it does not serve the network or token, or is paused, the donation is born on the V2 with 10%. A donation keeps the
contract it was born on. The smallest donation is the smallest amount whose fee fits that ceiling, rounded up to the whole dollar since 28/11/2026 (US$ 1 with
the free checks or one paid analysis, US$ 2 with Merkle Science and Crystal); the numbers are on https://docs.vurto.fi/fees. A private donation runs ONE paid analysis since 28/11/2026, the channel's: Merkle Science or Crystal, never both nor
Scorechain; a channel saved before with both, or with Crystal and no streamer KYC now, converges at the donation's creation to Crystal
with the streamer's KYC on an EVM network, else Merkle Science. Since 28/11/2026 Crystal there needs
the streamer's KYC: without it the donation runs Merkle Science only, and on Solana it is Merkle Science only in any case. When the
invoice is created, its token is one of the stablecoins the streamer's channel accepts at that moment (each channel picks them since
12/11/2026); an invoice already open keeps its token until it expires, even if the channel narrows the list later. On every network, `checks` with a paid tool is
refused with `400 paid_check_moved`, and **every** Solana invoice needs the receiving wallet to pass the free screening
before it is created (`403 receiver_blocked`, `503 screening_unavailable`).

**Crystal (since 17/11/2026)**: `crystal` is a third paid tool, the Crystal Risk Check, read once per wallet and network like Merkle
Science and on the same 0 to 100 scale (a wallet Crystal has no data on is `no_data`, never clean; one on its blocklist is blocked).
It covers Ethereum, Optimism, BNB Chain, Polygon, Base, Arbitrum One, Avalanche and Solana. Only a wallet whose identity check (KYC)
is approved may use it, which is Crystal's own rule: the creator in `payerChecks`, the payer in a receiver analysis or a batch, the
buyer of a Check, the streamer for a donation. The wallet must be PROVEN in the request, never only named: the site proves it with
its signed session; an API, MCP or CLI client signs the KYC proof challenge (`POST /v1/kyc/proof/challenge {wallet, chainId}`, scope
kyc, a text that moves no funds; MCP `kyc_proof_challenge`), hands the signature to `POST /v1/kyc/proof` (MCP `kyc_proof`) and sends
the `walletProof` it gets (`vkp_...`, 30 minutes) as the header `X-Wallet-Proof` on `POST /v1/invoices` (the receiver) or
`POST /v1/payouts` (the payer); MCP `invoice_create` and `payout_batch` take it as `walletProof`, and the CLI 0.3.13 does all of it
by itself when `--payer-check` or `--checks` name `crystal`. The receiver analysis bought apart (`POST /v1/invoices/{id}/analysis-payment/transfer`,
MCP `invoice_analysis_pay`, CLI `invoice analysis-pay`) takes the same `walletProof` of the payer: the destination authorization does
not prove the wallet for Crystal. The Check proves it with its purchase proof. Without the proof: `401 kyc_wallet_signature_required`, and nothing about any KYC is read. Without
the KYC, `403 kyc_required`. Either way nothing is created or charged. The KYC itself is done once by the person on the site. It is
sold at the same price per consultation as Merkle Science, on top of the fixed one (https://docs.vurto.fi/fees), so the fee and the minimum rise with it; while it has
no price the server answers `503 analysis_unavailable` instead of a wrong one. With both Merkle Science and Crystal, either one that
blocks blocks, and every risk threshold reads the higher of the two scores. The private contract (Send Privately, the
private invoice and donation) runs the ONE tool whoever configured it chose, Merkle Science or Crystal (since 28/11/2026; an invoice
created before keeps the tools it was quoted with), and its minimum is the one of that choice.
The private contract refuses a payer from the score `CORTE_DE_RISCO_DO_COFRE` on (50 since 28/11/2026; the withdrawal keeps 40); a private invoice also refuses a payer above its creator's own risk slider
for invoices (the same `invoice` threshold the public invoice applies on `/pay`), with the same `403 payer_above_threshold`, which
carries only the verdict (no score and no threshold: the score is the creator's purchase, and showing it would turn the paid analysis
into a free lookup); a private donation uses the channel's.
**The risk slider has five levels (since 18/11/2026):** 0, 20, 40 (the default), 55 and 69, on the Merkle Science or Crystal score.
Level 0 accepts only the no-risk band (a score from 0 to 9), 20, 40 and 55 accept a score up to the level, and 69 accepts everything
below the fixed cut of 70. A wallet outside what the level accepts is refused (`403 payer_above_threshold` /
`receiver_above_threshold`, the verdict only); from 70 on the analysis always refuses. The server keeps only these levels: any other
number from 0 up, saved before or sent now, counts as the level below it (35 is 20, never 40); anything else is `400
invalid_risk_threshold`. Changing your own level and building again tells only the band a score is in, never the score. A Merkle Science "No Risk Detected" (`no_data` with a score
from 0 to 9 and no sanctions hit) passes as clean for the payer; Crystal's `no_data` has no score: since 23/11/2026, with both chosen, the
one that answered clean decides and the one without a score neither approves nor refuses (since 23/11/2026 a sanctions mark from any chosen tool refuses the private contract at any score; a risk category, a block or a
score above the limit still refuses); with neither giving a score the payment is refused. Through the `VurtoPrivateSplit` the tool without
a score leaves the fee: `409 entry_repriced` on the ticket, and the page opens the same entry again at the smaller fee.

**A tool switched off (since 18/11/2026).** Vurto can switch Scorechain, Merkle Science or Crystal off on its side. A switched-off tool
is shown as down (`toolsDown`), is no longer offered (`GET /v1/check` `tools` and `toolOffer`, the Live donation's choices) and is
never called. A new request that still names it does not fail: it goes on with the tools that are on, nothing is charged for the one
left out, and the answer lists it in `skippedChecks` (invoice creation, the receiver analysis bought apart, the Check charge). A Check
with none of the tools chosen on sale is `503 check_unavailable`. The private contract runs the chosen tools
that are on; a chosen Merkle Science or Crystal that is off falls to the other one, a Scorechain that is off is left out, and only
with neither Merkle Science nor Crystal on it takes no new entry, `503 private_contract_unavailable`. A purchase already paid for a tool that was then switched off waits for it, as when a tool is down.

1. **The receiver asks for the analysis**: `payerChecks` on `POST /invoices`, stablecoin invoices only (USDC, USDT, PYUSD,
   USDG, USD1; else `400 stablecoin_required`). The invoice comes back with `split` (`rule: "flat"`, `fee`,
   `receiverAmount`, `feeWallet`) and nothing to pay first, so the link can be shared right away. Below the minimum,
   `400 amount_below_analysis_minimum` with `details.minimum`. The creator is the signed-in wallet, or the receiving wallet
   without a session. A transaction that reaches the receiver settles the invoice: the analysis decides before anyone signs, and refuses nothing after the money has arrived. The result goes to the creator alone: on the site, signed in with that wallet (`analysis.report` needs the session cookie, so it does not come through `/v1` or the MCP). Together with paid `checks`, `400 analysis_checks_conflict`:

   ```bash
   curl -sS https://swap.vurto.fi/v1/invoices -H 'content-type: application/json' --data '{
     "chainId": "solana-mainnet", "recipient": "<RECEIVER>", "token": "USDC", "amount": "200",
     "payerChecks": ["merkle-science"] }'
   # split: {"rule":"flat","fee":"1200000","receiverAmount":"198800000",...}: the payer sends 200, the receiver gets 198.80.
   ```

   `503 analysis_tool_unavailable` when the tool is not answering: nothing is created.
2. **The payer pays**, and both analyses run only then: `POST /invoices/{id}/pay` with `payer`, the wallet that will sign the
   transaction. Since 01/12/2026 the payer signs NO message (owner: the only message a payer signs is the KYC's, above the no-KYC
   limit of the private contract): the paid analysis runs on the declared `payer`, and the network ties it to who really pays (the plan
   is built for that wallet: the split contracts fix `msg.sender`, a Solana transfer is signed by its owner; and the payment record runs
   the analysis again on the measured sender, `payer_mismatch` when another wallet sent it). On Solana the `transfer` answer has
   `rentLamports`, the rent of the token accounts the payment opens (null when it cannot read), to check the SOL before signing.
   `POST /invoices/{id}/payer-challenge` and `payerProof` still answer for old clients (a proof sent is checked and used once), but
   nothing needs them. The free screening of both wallets runs first, then the paid analysis on the payer
   wallet and on the receiving wallet (no field switches it off; up to 2 payer wallets per invoice, then
   `429 analysis_attempts_exceeded`; a rejected payer gets
   `403 payer_blocked` and a rejected receiver `403 receiver_blocked`, before paying;
   `503 analysis_tool_unavailable` while the tool is not answering). Approved, `method: "transfer"` is ONE transaction
   with `split.receiverAmount` to the receiver and `split.fee` to the Vurto fee wallet. On EVM that is the split contract:
   `plan.steps` is the exact approve and `pay`; on the `VurtoInvoiceSplitV2` with any token whose EIP-2612 permit checks out (its
   `DOMAIN_SEPARATOR` equals the domain built from its `name` and `version`: the USDC of Circle does, USDT and the BNB pegs do not)
   the plan also carries `plan.permit` (`domain`, `types`, `primaryType: "Permit"`, `message`), and you may sign that typed
   data instead of the approve and send ONE transaction, `payWithPermit(token, destination, amount, feeAmount, invoiceRef, deadline,
   v, r, s, authorization)` to the same contract with the arguments of step 1 and the permit signature. Check before signing that
   the permit is for the invoice token on this network, from your wallet, to that contract, for the whole amount and with the
   deadline of step 1. Sign it with the EIP-2612 `Permit` type you hold yourself (`Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)`), never with the `types` or `domain` of the response: the wallet signs the type in `types`, not the `primaryType` field, and a lying server could put a `TransferWithAuthorization` of the same USDC there. The domain must have exactly `name`, `version`, `chainId` and `verifyingContract` = the invoice token, and the message exactly the five Permit keys. With another token, Solana returns
   `method: "swap"` combining Jupiter Router and both transfers; EVM returns `method: "swap_then_transfer"`: confirm the
   swap into the payer's own wallet, record it with `POST /executions` (`wallet`, `quoteId`, `txHash`), then call `next`.
   The swap is exact (since 30/11/2026): with part of the invoice token already in the wallet it brings only what is missing
   (`swapAmount`, e.g. 4.38 of a 5 USDC invoice when the wallet holds 0.62). On Solana with a partial balance the answer is
   also `method: "swap_then_transfer"` (Jupiter Router into the payer's own wallet, no split inside): send it, wait until
   `GET /svm/tx?signature=` says `finalized: true` (`next.afterFinalized`), then call `next` with the invoice token and pay
   the split transfer. With zero balance Solana keeps the single atomic `method: "swap"`. A wallet that
   already holds the invoice amount in the invoice token gets `409 payer_has_token` (pay it directly), and while a reported swap of this
   invoice is still open the next swap build (`/pay`, refresh, or `POST /swap` with its `quoteId`) is `409 swap_already_sent`. The lock
   counts only a swap the network shows from that wallet with the calldata of that quote's build, so a reported hash the network does
   not know (cancelled or replaced in the wallet) does not lock, and a hash already recorded for another quote is refused
   (`409 transaction_build_mismatch` or `409 correlation_tx_mismatch`): report each swap with the `quoteId` of the build you signed. Report the payment with `POST /invoices/{id}/payments` as usual.
   **Only a confirmed transaction that, by itself, delivers the amount minus the fee to the receiver AND the
   fee to the fee wallet, taken from the payer, settles the invoice**: otherwise the payment is recorded as failed
   (`split_fee_missing`, `split_receiver_short`, `split_not_a_transfer`, `split_not_from_payer`) and the invoice stays open.

   Older invoices keep their terms. One with a `split` whose `rule` is `analysis` or `percent` (before 07/11/2026) is paid
   the same way, and `403 analysis_offer_suspended` applies only to those. One created from 07/11 to 10/11/2026 with
   `payerChecks` has no `split`: its `analysis` (`status: "awaiting_payment"`, `amount`, `to`) is a separate charge the
   creator pays with `POST /invoices/{id}/analysis-payment/transfer` (`payer` = creator) and reports with
   `POST /invoices/{id}/analysis-payment` `{txHash}`; `/pay` answers `409 analysis_unpaid` until then, and the plan
   delivers the whole amount, with the analysis on the payer wallet only.
3. **The payer can ask for the receiver's analysis** on an invoice without the fee inside (no `payerChecks`, or an
   older one), with their own money and before paying (the answer adds nothing about the receiving wallet beyond what the
   invoice already shows). Since 16/11/2026 the charge is one consultation at the fixed price, US$ 0.40 from US$ 1 up
   (https://docs.vurto.fi/fees), the same with one tool or two, in the network USDC. `invoice.receiverAnalysisFee` says it
   before you build: `{"available": true, "amount": "0.40"}` (dollars), or `{"available": false, "minimum": "1.0"}` when the
   amount is below the minimum. Below it the purchase answers `400 amount_below_analysis_minimum` (`details.minimum`), and on
   an invoice in a token that is not a dollar stablecoin `400 stablecoin_required`. Adding a tool to an analysis already
   paid and fresh is a new purchase at the same fee. A tool that already ran on that wallet for this payer up to 30 days ago,
   with no movement measured on the wallet since (on EVM: the same nonce, native balance and balance of every dollar stablecoin of the network, and no contract code; on Solana: no new confirmed signature and the same SOL and associated dollar stablecoin accounts; a read that fails, or any other token or NFT, is not seen, and then the provider is called), comes from the history instead of the provider; each paid tool
   of `receiverAnalysis.result.tools` carries `analyzedAt`, the day it ran. A charge opened at an older price (per tool, or the
   brackets of 11/11 to 16/11/2026) and not paid is rewritten with the fee the next time it is built. Reporting a hash on it pays it at the recorded value only when the
   network mined that transaction before this deploy; otherwise the charge is rewritten and the answer is
   `409 analysis_charge_replaced` (build and sign the new value). A paid one stays as it was. There is no free reuse any more: every
   purchase pays the fee, and the history only spares the provider. On an invoice whose `split.rule` is `flat` or `brackets` it is
   already inside the fee, and the server refuses the purchase with `409 analysis_included_in_fee`. It never goes inside the payment: `receiverChecks` with a tool on `/pay`
   answers `409 analysis_not_in_split`, on any invoice.

   ```bash
   curl -sS https://swap.vurto.fi/v1/invoices/INV-7K3M-Q9XA/analysis-payment/transfer \
     -H 'content-type: application/json' --data '{"payer":"<PAYER>","checks":["merkle-science"]}'
   # sign the USDC transfer (receiverAnalysis.amount to the fee wallet: 0.40 on any invoice from 1 USDC up), then:
   curl -sS https://swap.vurto.fi/v1/invoices/INV-7K3M-Q9XA/analysis-payment \
     -H 'content-type: application/json' --data '{"payer":"<PAYER>","txHash":"<SIGNATURE>"}'
   # receiverAnalysis.result: {"verdict":"passed","merkleScience":{...}}
   ```

   `503 analysis_tool_unavailable` when the tool is not answering: nothing is charged, `details.check` says which one,
   and `toolsDown` comes in `GET /screening/{wallet}`. On an invoice with `payerChecks`, while the creator's charge is open, buying this one answers `409 analysis_unpaid`. The creator reads the state of their own charge in `invoice.analysis.status`. A new purchase needs no wallet proof, the payment itself proves it; giving it up and changing the tools
   do. The free screening of both wallets runs (`403 screening_blocked`). An open, unpaid
   charge does not hold `/pay`, because anyone can open one naming a wallet: pay and report it BEFORE
   `/pay` if you want its verdict to count. A paid one goes stale when the receiving wallet moves, and
   then `/pay` answers `409 receiver_analysis_unpaid` until it is redone. While one is open, the `/pay` answer
   carries `warning` and `receiverAnalysis`, and `GET /v1/invoices/{id}/analysis-payment?payer=` says only `none`, `awaiting_payment` or `paid`. Only `checks: []` gives it up; leaving `checks` out is the charge of the invoice creator on an invoice with `payerChecks` (`403 not_invoice_creator` for anyone else), and `400 invalid_check` otherwise. Reporting the payer's purchase without `payer` answers `409 analysis_payer_required`. A
   rejected receiver makes `/pay` answer `403 receiver_blocked`. Paying it from another token is a
   `POST /v1/svm/swap` from the payer with `receiver` = `receiverAnalysis.to` and `invoiceId`; only a
   transaction in which the fee wallet is the only one gaining USDC counts. On EVM too since 28/11/2026: `POST /v1/swap` from
   the payer with `receiver` = `receiverAnalysis.to`, `invoiceId` and `tokenOut` = `receiverAnalysis.token`, sized so the
   guaranteed minimum covers `receiverAnalysis.amountRaw`; it counts only when the transaction is exactly that build, made for
   this payer and this invoice, sent by the payer, with that USDC reaching the fee wallet.

Every payment record keeps, for 10 years, who asked for each paid analysis and who paid it. MCP: `invoice_create` (`payerChecks`), `invoice_pay`, `invoice_analysis_pay`
(the creator of an older invoice with `payer`; the payer with `payer` and `checks`), `invoice_report_analysis_payment` (`txHash`; `payer` for the payer's purchase). CLI: `vurto-swap invoice
create --payer-check merkle-science`, then `vurto-swap invoice pay`; the charge of an older invoice is `vurto-swap invoice analysis-pay --wallet <creator>`, and the payer's purchase is `vurto-swap invoice analysis-pay --wallet <payer> --check
merkle-science`. A ready-made agent skill with these flows: `https://swap.vurto.fi/skills/vurto-payments/SKILL.md`.

**Batch payouts (Solana and EVM)**: payroll or a supplier list, each wallet paid its **exact**
amount in the payer's own token:

```bash
curl -sS -X POST https://swap.vurto.fi/v1/payouts -H 'content-type: application/json' -d '{
  "chainId": "solana-mainnet", "token": "USDC", "payer": "<PAYER>",
  "recipients": [{ "wallet": "<ANA>", "amount": "500" }, { "wallet": "<LUIS>", "amount": "120.5", "memo": "October" }]
}'
```

The paying wallet and every receiving wallet are screened first: a blocked payer refuses with
`403 payer_blocked`, and one blocked recipient refuses the whole batch with `403 receiver_blocked`
and `details.index` of that row, before anything is created. A row's `wallet` can be `"@handle"`: the Vurto Profile
picks one of that user's wallets marked for regular transfers, and the row's invoice carries `recipientHandle`. Each recipient
becomes a regular invoice (history and on-chain verification). The signing differs by family:

- **Solana** (up to 50 recipients, no fee): the response is `{ invoices[], transactions[] }`, the
  transfers packed in as few transactions as fit the network limit (about nine recipients each),
  each with its `invoiceIds`. Sign and send each transaction in order, then report it with its
  signature.
- **EVM** (the nine chains with `loteSplit: true` in `/v1/chains`; up to 50 recipients, a USD
  stablecoin only): the response is `{ invoices[], evm: { split, invoiceIds[], base, fee, steps[] } }`.
  The batch is ONE transaction through the Vurto IBBs contract, with a 0.1% Vurto fee on the total.
  Sign `steps` in order (the `approve` step first, then the `pay` transaction), send them, and report
  the ONE pay-transaction hash with all of `evm.invoiceIds`.

**The payer must already hold the batch token.** Before anything is created, the route reads the paying wallet's balance of
the batch token on-chain: the total, plus on EVM the 0.1% fee rounded up (the same number the `pay` step spends). Short of it,
it answers `409 payer_balance_short` with `details: { token, symbol, decimals, needed, have, short }` in token units, and nothing
is created. Swap to your own wallet first (`POST /v1/swap` or `POST /v1/svm/swap` with `tokenOut` = the batch token and no
`receiver`; MCP `swap_build`), then build the batch again. With `checks` it is read too, because the send of the approved spends
the same token. The response carries `payerBalance: { checked, needed, have }`; `checked: false` means the RPC did not answer
and the batch was built without that read, so make sure the wallet holds `needed` before signing.

```bash
curl -sS -X POST https://swap.vurto.fi/v1/payouts/payments -H 'content-type: application/json' \
  -d '{ "txHash": "<PAY HASH or SIGNATURE>", "payer": "<PAYER>", "invoiceIds": ["INV-...", "INV-..."] }'
```

Each invoice turns `paid` from what reached that wallet on-chain; call again a few seconds later if
some are still pending (a freshly-sent EVM transaction can read back as pending on a lagging node).
Each wallet once (`batch_duplicate_recipient`), never the payer (`batch_self_payment`), at most the
family's cap (`too_many_recipients`); an EVM chain without the contract gives `batch_not_available_on_chain`
and a non-stablecoin gives `stablecoin_required`. MCP: `payout_batch` and `payout_report_payment`.
CLI: `vurto-swap payout --file payroll.csv --chain base --token USDC --wallet <payer> --batch`
(EVM and Solana alike). Without `--batch`, `payout` builds one payment per wallet.

**Batch with paid analysis (both families)**: add `checks` to screen every destination with the paid
tools (`scorechain`, `merkle-science`, `crystal`) before paying, in a stablecoin. Scorechain runs on every EVM
chain and Solana; Merkle Science does not cover Gnosis, Unichain or Avalanche; Crystal does not cover Gnosis or Unichain (a check
the chain lacks gives `check_not_available_on_chain`). `crystal` is only for a payer whose identity check (KYC) is approved
(`kyc_required`, 403, otherwise) and adds its own price per destination. It is a two-step flow. Step 1 returns a `charge` instead of
`transactions` (on Solana `charge.transaction` is a base64 transaction; on EVM it is an object
`{ to, data, value }`, an ERC-20 USDC transfer to `feeWallet`):

**Crystal on Solana** (`noScoreNetworks` in `toolOffer` and in `/api/analyses`): Some Solana wallets may show riskscore: null because they lack the elements Crystal needs to assess them: it is not an error, it is a condition (since 25/11/2026). The tool then comes with `noScoreCondition: true` and `result: "unavailable"`; the credit is spent, the wallet is never read as clean, and the seal is never green. On the EVM networks a missing score keeps the credit open instead.

```bash
curl -sS -X POST https://swap.vurto.fi/v1/payouts -H 'content-type: application/json' -d '{
  "chainId": "solana-mainnet", "token": "USDC", "payer": "<PAYER>",
  "recipients": [{ "wallet": "<ANA>", "amount": "500" }, { "wallet": "<LUIS>", "amount": "120.5" }],
  "checks": ["scorechain", "merkle-science"]
}'
# -> { "invoices": [...], "charge": { "transaction": "<base64>", "loteId": "...", "total": "...",
#      "token": "<mint>", "tokenDecimals": 6, "feeWallet": "<Vurto fee>", "recipients": 2 }, "reused": [] }
```

Since 16/11/2026 `charge.total` is one consultation at the fixed price per destination (https://docs.vurto.fi/fees), the
same with one tool or two, every destination from the minimum on (US$ 1): 100 and 500 USDC give 0.40 + 0.40 = 0.80. A destination
whose analysis comes from the history still pays its share: no reuse takes the charge to zero. A destination below the
minimum goes without the paid analysis (free screening only), stays out of the charge, and is listed in `withoutAnalysis`;
when every destination is below it, the batch comes back analysed with no charge. A charged
destination still takes from the history the tools that already ran on it for this payer up to 30 days ago, with no movement measured on the wallet since (on EVM: the same nonce, native balance and balance of every dollar stablecoin of the network, and no contract code; on Solana: no new confirmed signature and the same SOL and associated dollar stablecoin accounts; a read that fails, or any other token or NFT, is not seen, and then the provider is called),
decided when the charge is paid; `approved[].analyzedAt` says the day each paid tool ran. `reused` and the preview's `paid`
are only a hint of the last 30 days, with no network read.
`POST /v1/payouts/reuse` with the same `recipients` (each with its `amount`) and `token` previews it in `fee`:
`{ "amount": "0.80", "charged": 2, "belowMinimum": [], "minimum": "1.0" }`.

Sign and send `charge.transaction` (one USDC transfer of the summed analysis fee to `feeWallet`),
then step 2 verifies it on-chain, runs the analysis on each destination, **excludes** any wallet that
is blocked or over the payer's risk threshold (it receives nothing, its money never moved), and
returns the transfers of only the approved wallets:

```bash
curl -sS -X POST https://swap.vurto.fi/v1/payouts/charge -H 'content-type: application/json' \
  -d '{ "loteId": "<loteId>", "txHash": "<CHARGE HASH/SIGNATURE>", "payer": "<PAYER>", "chainId": "137" }'
# Solana -> { "transactions": [...], "approved": [...], "rejected": [{ "wallet": "...", "reason": "blocked|above_threshold" }] }
# EVM    -> { "evm": { "steps": [approve, pay], ... }, "approved": [...], "rejected": [...] }  (IBBs pay of ONLY the approved)
```

Sign `charge.transaction` exactly as returned: it carries a mark that ties the payment to this charge (16 bytes after the
`transfer` arguments on EVM, a memo on Solana). A transfer you build yourself is refused with
`analysis_payment_rejected`, reason `charge_not_tied`, with the money already sent. **Do not pay again**: prove the wallet
(`POST /v1/destination/challenge` with `wallet` = payer, `receiver` = `details.feeWallet`, `chargeId` = the `loteId` and
`chargeTxHash` = that hash, sign the text; an authorization without them does not count here,
`POST /v1/destination/authorize`) and report the same hash again. The charge hash goes only to this route, never to
`/v1/payouts/payments`. A Solana transaction expires in about a minute: `POST /v1/payouts/charge/transaction` with
`loteId` and `payer` returns the same charge fresh, without another batch; if it also returns `reportedTxHash`, a hash was
already reported for this charge, with `reportedAt`, so send that one here instead of signing, or you may pay twice. A hash the network does not know stops being returned 15 minutes after it was reported, and then you can sign. To pay the fee with another token, `POST /v1/swap`
or `POST /v1/svm/swap` with `tokenOut` = `charge.token`, `receiver` = `charge.feeWallet` and `loteId`, sized so the minimum
stays between `charge.total` and 10% above it (`422 charge_swap_below_amount`, `422 charge_swap_above_amount`, before you
sign). `alreadyPaid` lists the wallets of this batch already paid, and `inFlight` those with a payment reported in the last 10 minutes and still unconfirmed: both are out of the send. If `evm.deadline` passed, call
this route again for a fresh authorization. Passing `chainId` is optional: without it the family comes from the payer's format. On Solana, sign and send each `transactions[i].transaction`;
on EVM, sign the `evm.steps` (approve then pay the IBBs contract, which pays only the approved with the
0.1% fee recomputed on the approved base), then report with `/v1/payouts/payments` as above. `reused`
(and `paid` in `POST /v1/payouts/reuse`) is a hint of the destinations this payer analysed in the last 30 days, with no
network read, and needs the paying wallet's **signed session**, absent via curl, CLI or MCP; the charge is the same either
way, and when the charge is paid the history is decided for every destination by the movement measured then. A batch
charge opened at an older price (per wallet, before 11/11/2026, or the brackets, 11/11 to 16/11/2026) is rebuilt by the fixed price: `POST /v1/payouts/charge/transaction`
returns the new total, and `POST /v1/payouts/charge` pays it at the old total only with a transaction the network mined
before this deploy, otherwise it answers `409 analysis_charge_replaced`. One that already had a hash reported when this
deploy ran keeps its recorded total. Errors:
`stablecoin_required` (a non-stablecoin token), `check_not_available_on_chain` (a paid check the chain
lacks, e.g. Merkle on Gnosis/Unichain/Avalanche), `analysis_payment_pending` (409, send the charge hash
again shortly), `analysis_payment_rejected` (the transaction does not pay this charge). MCP:
`payout_charge`, `payout_reuse`. CLI:
`vurto-swap payout --file payroll.csv --chain base --token USDC --wallet <payer> --batch --checks scorechain,merkle-science`
(any EVM chain or solana), then `vurto-swap payout charge --lote <loteId> --tx <charge-hash> --wallet <payer> --chain base`.

### 5.13 Check: a paid analysis of any wallet

Choose the networks and the paid tools, pay once, and analyse a wallet on each of them: an EVM wallet on the EVM networks chosen
among the six Merkle Science covers (`1`, `10`, `56`, `137`, `8453`, `42161`), a Solana wallet on `solana-mainnet` if it was chosen.
The free screening (OFAC SDN, issuer freeze) always runs on each wallet. The paid tools are each a choice of its own (owner,
18/11/2026: one mark per paid tool), at least one: Scorechain reads each wallet once, Merkle Science (Didit) and Crystal read once per
network. The Check reads, and the result shows, only the tools bought (`check.tools`).

**The price is the sum of the tools chosen**, each at its own system variable: `GET /v1/check` returns `toolOffer [{ tool, per,
price, maximum, kycRequired? }]` with the tools on sale: `scorechain` per `wallet` (`SCORECHAIN_PRECO_POR_CONSULTA_USD`; an EVM wallet
and a Solana one are two), `merkle-science` per `network` (`ANALISE_PRECO_POR_CONSULTA_USD`, at most `CHECK_PRECO_MAXIMO_USD`, six
networks) and `crystal` per `network` (`CRYSTAL_PRECO_POR_CONSULTA_USD`, at most the same six networks). A Check costs, for each tool
chosen, `price` times its units, capped at its `maximum`, summed: the same function the charge uses, so the number you compute from
`toolOffer` is the number charged. `tools` lists the names on sale, `defaultTools` what a charge without `tools` buys (the pair
`scorechain` and `merkle-science`, for older clients), `price { maximum, perNetwork, amount }` is Merkle Science alone (older clients),
`checkNetworks` the seven to choose and `networks` where it is paid (the nine EVM networks and Solana, each with its USDC and fee wallet).

**Choosing the tools**: `"tools": ["scorechain"]`, `["merkle-science", "crystal"]`, any non-empty list of the tools on sale, each once.
Empty, repeated or unknown is `400 invalid_check`; a tool switched off or without a price is left out with `skippedChecks`, and with
nothing left `503 check_unavailable`. Since 18/11/2026 `["crystal"]` means Crystal alone (before, it added Crystal to the pair).
`crystal` is only for a payer whose identity check (KYC) is approved: otherwise the charge is refused with `kyc_required` (403) and
nothing is built. Whether the paying wallet may buy it is `POST /v1/check/buy/kyc` with the purchase proof in `Authorization: Bearer vcb_...`
(`{ kycApproved, crystalOnSale }`, the same gate as the charge; asked only when Crystal is wanted, the purchase proof itself reads no
KYC). A client up to CLI 0.3.15 (`x-vurto-cli` absent or below 0.3.16) sending exactly `["crystal"]` on the /v1 still gets the pair plus
Crystal, as before; that is compatibility, not control. The published 0.3.15 refuses to SIGN that purchase on the six EVM networks:
it costs US$ 7.35 there (the pair plus Crystal at the prices of 18/11/2026) and its own ceiling with Crystal is US$ 7.20; with five
networks or fewer it signs. The way out is the current version, 0.3.25. Crystal
reads on the same 0 to 100 scale as Merkle Science; a wallet Crystal has no data on is never called clean (the tool reads
`unavailable` and the seal is grey).

**Before signing a Check**, whatever `GET /v1/check` says: the website and the CLI sign, for the tools and networks ASKED, at most
US$ 1.20 per network charged (up to six) for the per-network tools together, never above US$ 5 with only one of them, plus US$ 0.30 per
wallet with Scorechain (twice its price; one wallet per family of the networks). One network with the three tools: US$ 1.50.

**The credit is per tool.** At `POST /v1/check/analysis` a paid tool that cannot read now (Crystal with the payer's KYC no longer approved,
a tool Vurto switched off) is not spent: the others read, the result shows only them, and the answer carries `pendingTools [{ tool,
reason: kyc_required | switched_off }]` and `pendingCheckId`, a credit of its own for the pending tools, already paid and bound to the same
wallets (keep it like any Check id). With no paid tool able to read, `409 check_tools_pending` (`details.pending`) and nothing is spent.
**Crystal without a score gives its part back** (owner, 25/11/2026). When Crystal has no score for the wallet on a network
(`noScoreCondition`: no score, no sanction, no risk category; today on Solana), the reading still shows it, and the answer carries
`returnedCredit { checkId, tools: ["crystal"], networks, reason: "crystal_no_score" }`: a FREE paid credit, no wallet bound, for another
wallet (the same one answers the same). At most 1 return per purchase; past that the reading is spent as before. Only the
analysis answer names `checkId`; a later read by id says it came back, never which.
To use it with more tools and **pay only the difference**, send `creditId` (that credit) to `POST /v1/check/charge` with `tools`
that include its tools and `networks` exactly its networks: the charge comes with `check.creditApplied { amount }` and costs the rest. The
credit is spent when the charge is paid; spent elsewhere first, the purchase credits only the tools the payment covered.
`check_credit_unavailable` (409), `check_credit_not_covered` (400), `check_credit_covers_all` (409: use the credit by itself).
A payment mined after the charge's 30 minutes credits exactly the tools the charge bought. `price` (for clients from before 18/11/2026)
is the pair a purchase without `tools` buys: `maximum` and `amount` the six EVM networks (US$ 3.75), `perNetwork` and `perWallet`.

**No sign-in; the id plus the payer's proof opens a Check.** `payer` is the wallet that will sign the transfer, not a login: the server measures the
sender on-chain, so only that wallet can pay. Before buying, that wallet proves itself once (owner, 12/11/2026: only a wallet that
passes the free screening buys): it signs the purchase text, the server runs the free screening (OFAC and issuer freezes), and only
a wallet that passes gets the purchase proof (`vcb_...`, 10 minutes) that `POST /check/charge` asks for in `Authorization: Bearer`
(without it, `401 check_buy_proof_required`; a blocked wallet, `403 payer_blocked`).
The Check id (`CHK-` and a UUID v4, 122 random bits, returned only to whoever built the charge; the mark on the network is an HMAC
that does not reveal it) names that Check. Since 26/11/2026 (owner) the id alone no longer opens it: `/check/analysis`,
`/check/result` and `/check/status` also take the proof of the wallet that paid in `Authorization: Bearer`, its purchase proof
(`vcb_...`, 10 minutes, the one you hold right after buying) or its Check access (`vca_...`, 24 hours, step 5). Without it,
`401 check_payer_proof_required`; with another wallet's, `404 check_not_found`, the same as an id that does not exist.
`/check/payment` still records the payment by the id alone (the network measures the sender) and then answers only
`{ "check": { "id", "status" } }`; with the proof, the whole Check. Keep the id private, and never put it or a proof in a URL (URLs
are kept in request logs).

```bash
# 0. Price, networks, fee wallets. Public.
curl -s https://swap.vurto.fi/v1/check
#    Is the wallet to analyse real? Public, no proof: used | unused | not_a_wallet | invalid | unread (family from the address;
#    EVM read on the six EVM networks, Solana by its account or last signature). The screen goes green only on "used".
#    Capped at 200 a day per IP and a daily total: past it, "unread" with "reason":"daily_limit" and nothing read (go on, it does not block).
curl -s -X POST https://swap.vurto.fi/v1/check/wallet -H 'content-type: application/json' -d '{"wallet":"0xTARGET"}'
# 1. The paying wallet proves itself and passes the free screening (a challenge of its own, scope buy, single use):
curl -s -X POST https://swap.vurto.fi/v1/check/buy/challenge -H 'content-type: application/json' -d '{"wallet":"0xPAYER","chainId":8453}'
#    sign message (EIP-191) or typedData (EIP-712, primaryType CheckBuy); on Solana the message or the proofTransaction (never sent)
curl -s -X POST https://swap.vurto.fi/v1/check/buy/proof -H 'content-type: application/json' \
  -d '{"wallet":"0xPAYER","nonce":"<nonce>","message":"<message, unchanged>","signature":"0x..."}'
# -> 201 { "buyProof": "vcb_...", "payer": "0x...", "screening": "passed", "expiresAt": "..." }   (403 payer_blocked: this wallet cannot buy)
#    The payment for the networks chosen, built by the server with the mark of THIS Check, only for the wallet of the proof. Sign it exactly as returned.
curl -s -X POST https://swap.vurto.fi/v1/check/charge -H 'content-type: application/json' -H 'Authorization: Bearer vcb_...' \
  -d '{"chainId":8453,"payer":"0xPAYER","networks":["8453","56","solana-mainnet"]}'
# -> { "check": { "id": "CHK-...", "status": "awaiting_payment", "amount": "0.99", "amountRaw": "990000", "paidNetworks": ["56","8453","solana-mainnet"],
#      "expiresAt": "..." }, "transaction": { "to": "<USDC>", "data": "0xa9059cbb...<mark>", "value": "0" }, "plan": { "buildId": "check-CHK-...", "steps": [...] } }
#    Each call is a NEW Check, good for 30 minutes. {"checkId":"CHK-..."} rebuilds the transfer of one still unpaid and in its time.
#    No USDC on that network? Pay it with any other token by swap (owner, 28/11/2026): POST /v1/swap (EVM) or POST /v1/svm/swap (Solana)
#    with tokenOut = check.token, receiver = check.feeWallet and checkId = check.id (CHK-...; loteId is accepted too), sized so the guaranteed minimum covers
#    check.amountRaw. Only the payer named in the Check may build it, while it awaits payment and in its time; sign its steps (approve,
#    then the swap) and report the swap hash or signature in step 2 as usual. The server counts it only when it matches a build it
#    assembled for THIS payer carrying THIS Check id, into the fee wallet, with that minimum.
# 2. Report the hash once mined. 201: one unused credit (status paid) for those networks.
curl -s -X POST https://swap.vurto.fi/v1/check/payment -H 'content-type: application/json' -H 'Authorization: Bearer vcb_...' -d '{"checkId":"CHK-...","txHash":"0x..."}'
# 3. Spend it: a wallet for each family paid, with the payer's proof (vcb_ of the last 10 minutes, or vca_ of step 5).
curl -s -X POST https://swap.vurto.fi/v1/check/analysis -H 'content-type: application/json' -H 'Authorization: Bearer vcb_...' \
  -d '{"checkId":"CHK-...","evmWallet":"0xTARGET","solanaWallet":"9WzDXw...AWWM"}'
# -> { "check": { "status": "used", "seal": "red", "target": { "wallets": { "evm": "0x...", "svm": "9Wz..." }, "networks": [...] },
#      "result": {...}, "screening": {...}, "networks": [{ "chainId": "56", "seal": "red", "result": {...}, "screening": {...} }, ...], "events": [...] } }
# 4. Read it again later, no provider called (the id in the body, never in the URL), with the payer's proof:
curl -s -X POST https://swap.vurto.fi/v1/check/result -H 'content-type: application/json' -H 'Authorization: Bearer vca_...' -d '{"checkId":"CHK-..."}'
#    Several at once, short view, unknown ids and other payers' ids left out (up to 50):
curl -s -X POST https://swap.vurto.fi/v1/check/status -H 'content-type: application/json' -H 'Authorization: Bearer vca_...' -d '{"checkIds":["CHK-...","CHK-..."]}'
# 5. Later than 10 minutes, or lost an id? The payer's Check access (24 hours, a challenge of its own) opens its Checks and lists them by wallet:
curl -s -X POST https://swap.vurto.fi/v1/check/access/challenge -H 'content-type: application/json' -d '{"wallet":"0xPAYER","chainId":8453}'
#    sign message (EIP-191) or typedData (EIP-712); on Solana the message (ed25519) or the proofTransaction (never sent)
curl -s -X POST https://swap.vurto.fi/v1/check/access -H 'content-type: application/json' \
  -d '{"wallet":"0xPAYER","nonce":"<nonce>","message":"<message, unchanged>","signature":"0x..."}'
curl -s -H 'Authorization: Bearer vca_...' 'https://swap.vurto.fi/v1/check/credits?payer=0xPAYER[&cursor=<nextCursor>]'
#    The access goes ONLY in the header (in the URL, 400 check_access_not_in_header); the cursor is opaque and never the id.
```

- **The seal**: `red` risk found (a sanction, an issuer freeze, a Merkle score in the band that blocks), `yellow` medium
  risk, `green` no risk (Merkle `no_data` is a reading without risk), `grey` only when a paid reading did not come back. Each
  network has its own seal in `networks`; the seal of the Check is the worst one (`red`, then `yellow`, then `grey`, then
  `green`), and `result` and `screening` are those of the worst network.
- **One credit, its networks, single use, no expiry.** The credit reads only the networks it paid. It is taken in one update, so
  two calls at once run ONE analysis (`409 check_running`). Each paid provider is called at most 3 times per credit and per network
  (per wallet on Scorechain), and Didit at most the networks paid plus 2 times in all, failures and answers without a reading
  included: past that, the networks not read are stored unread (grey) and the credit ends. The target is bound at the first provider
  call (`409 check_credit_locked` for other wallets). A reading held past 5 minutes was interrupted: the payer resumes it.
  The same credit and wallets again answers what is stored; others are `409 check_credit_used`. Within 30 days and with the wallet
  unmoved on a network (the same measurement as invoices), that network comes from this payer's history (`fromHistory`).
- **Paying with another token** (owner, 12/11/2026): a swap into the fee wallet, built by `POST /v1/swap` (EVM: `/v1/quote` then
  `/v1/swap`, with `receiver` = `check.feeWallet` and `checkId`) or `POST /v1/svm/swap` (same fields), `tokenOut` = `check.token`, the
  guaranteed minimum between the price and 10% above (`422 charge_swap_below_amount` / `charge_swap_above_amount`). The `checkId`
  unlocks the fee wallet as destination only for the payer the charge names, the charge open and in its 30 minutes; any other wallet
  gets the common rule (a destination needs its signed authorization). Report the swap's hash with `/v1/check/payment` as usual: on EVM it
  counts only when it is the build the server assembled for this payer with this `checkId`; on Solana it carries the Check mark in a memo
  and only the fee wallet may gain USDC.
- **The charge**: good for 30 minutes from when it is built (`expiresAt`): rebuilding it later is `409 check_charge_expired`. A
  payment mined after them still credits, by the price of now: every network paid if what it sent covers them, else the first networks
  (in `checkNetworks` order) it covers, rounded down (`lateCharge: true`, `paidNetworks` shows which); only one that covers none is
  `409 check_charge_expired` (nothing credited, send the hash to support). The ceiling of unused credits (`409 check_credit_limit`) and the payer's
  screening (`403 payer_blocked`) are checked when it is built and again when it is paid; nothing is reserved on those refusals, so
  the same hash reported later still counts. Two transactions signed for the same charge (two tabs, the second mined within 10 minutes of the
  BLOCK of the first, never past the charge's deadline, however late either is reported) make two credits, both of the payer.
- **Privacy, what is true**: a Check is opened only with its id AND the proof of the wallet that paid it (an unknown id, or another
  wallet's proof, is `404 check_not_found`, the same for every id that does not exist), and a list by wallet needs that wallet's
  signature. The wallets you analyse are sent to Scorechain
  and Merkle Science to be read. The payment itself is a public USDC transfer to the fee wallet.
- **Nothing is sold that cannot be delivered**: a paid tool down or without credit at the provider is
  `503 analysis_tool_unavailable` before any charge is built. If one falls after the payment, `503 check_unreadable`
  (`details.missing` as `tool:network`) and the credit stays valid until that network's calls are spent.
- **A transfer you build yourself** has no mark: `400 analysis_payment_rejected` reason `charge_not_tied`. Do not pay again:
  prove the wallet with `/v1/destination/challenge` (`receiver` = `details.feeWallet`, `chargeId` = the check id,
  `chargeTxHash` = that hash) and `/v1/destination/authorize`, then report the same hash. Other refusals:
  `check_networks_required`, `check_wallet_missing`, `check_family_not_paid`, `too_many_checks`, `invalid_cursor` (400),
  `check_already_paid`, `check_charge_expired`, `tx_already_used` (409), `check_payer_proof_required` (401, the list without the access),
  `check_buy_proof_required` (401, the charge without the purchase proof of that payer), `check_buy_challenge_invalid` (401, a challenge that is not this wallet's purchase).
- `GET /v1/check/result` (CLI 0.3.8 put the id in the query) answers `400 check_id_not_in_url`; use the POST.
- MCP: `check_info`, `check_buy_challenge {wallet, chainId}`, `prepare_signing`, `check_buy_proof` (returns `buyProof`), `check_charge {chainId, payer, networks, buyProof}`, `check_report_payment`, `check_analyze {checkId, evmWallet, solanaWallet}`,
  `check_result` (by the id), and `check_access_challenge`, `check_access`, `check_credits` for the list. CLI 0.3.10 (0.3.9 and older build no purchase proof and get `401 check_buy_proof_required`):
  `vurto-swap paid-check buy --chain base --wallet <payer> --networks base,bnb,solana --json | vurto-swap sign --wallet <payer>` (buy signs the
  purchase text with the payer key first, or takes `VURTO_CHECK_BUY_PROOF`; the id
  goes to the last line of `.vurto-check-id`, one id per line, mode 600, never on screen), `paid-check report --tx`, `paid-check run --target-evm --target-solana`,
  `paid-check get`, and `paid-check access` then `paid-check list [--cursor]`.

## 6. Solana

Solana is the same product on a different runtime, so the surface mirrors `/v1` under `/v1/svm`
instead of bending the EVM routes to fit. Nothing in §5 changes shape; what follows is only what
is genuinely different.

### 6.1 What is different, and it is only four things

1. **`chainId` is a string**, `"solana-mainnet"`, not an integer. There is no chain number on
   Solana, and inventing one would be convenient here and a lie everywhere it surfaced later.
2. **There is no approve, so there is no `steps[]`.** A build returns one `transaction`. The token
   program has no allowance to grant, and the runtime lands every instruction in a transaction or
   none of them, so an atomic multi-leg basket needs no router contract of ours either.
3. **Signing uses a Solana key.** Nothing in the EVM signing path applies: a v0 transaction is not
   an EVM transaction, and an ed25519 key is not a secp256k1 key.
4. **A signature is not a receipt.** The wallet returns a signature at send time, not at
   confirmation. Between those two moments the network can still drop the transaction, or it can
   expire past `lastValidBlockHeight` without ever having existed. Ask `GET /v1/svm/tx`.
   A `confirmed` answer also carries `finalized` (true once the network made it final). If you swap into your own wallet and then
   open something checked on the final state (the private contract's entry, a batch), wait for `finalized: true` first.

### 6.2 Balances: dust is filtered, pasted tokens are not

`GET /v1/svm/balances` does **not** return every token the wallet holds. A
typical Solana wallet with some history holds thousands of spam airdrops: one we
measured had 4151 token balances, of which nine were worth anything, and serving
all of them cost a quarter of a megabyte per call.

What comes back is the wallet's balance in tokens that are in our catalog, plus
the native SOL, and only those get priced.

If you hold a token that is not in the catalog, name it in `extra` and it comes
back:

```bash
curl -s "$BASE/v1/svm/balances?chainId=solana-mainnet&wallet=$WALLET&extra=$MINT_A,$MINT_B"
```

Up to 60 mints, comma-separated, base58. Anything not in the catalog and not in
`extra` is simply absent from the response — not zero, absent. Do not read a
missing mint as "the wallet holds none of it".

When our node cannot list the wallet's token accounts, the answer can come back
**partial**: `"partial": true` plus `"read": [...]`, the mints that were actually
read (your `extra` mints first, then SOL and the catalog's most traded tokens, up
to 99, through their associated token accounts). Only the mints in `read` say
anything; a mint outside `read` is unknown, not zero. Merge a partial answer into
what you had instead of replacing it. A full answer has no `partial` field.

### 6.3 Addresses are base58 and case-sensitive

`EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` lowercased is a different string, decoding to a
different, non-existent account. Nothing will tell you: the format still validates, the request
still parses, and you get "token not found" or an empty balance for a token you are holding. If a
Solana call fails in a way that makes no sense, check the case of every address in it first.

### 6.4 Quote

Two request shapes, both accepted. The short one, for agents:

```bash
curl -sS https://swap.vurto.fi/v1/svm/quote \
  -H 'content-type: application/json' \
  --data '{"chainId": "solana-mainnet", "tokenIn": "USDC", "tokenOut": "SOL", "amount": "50"}'
```

And the explicit one, when you already hold the mints and decimals and want to skip token
resolution entirely:

```bash
--data '{
  "chainId": "solana-mainnet",
  "tokenIn": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "tokenOut": "So11111111111111111111111111111111111111112",
  "tokenInDecimals": 6, "tokenOutDecimals": 9,
  "amountIn": "50000000"
}'
```

Symbols resolve only against the **verified** list, and that restriction is the point: on Solana
anyone can mint a token carrying another one's symbol, name and icon, and the mint is the only real
identity. An unverified token has to be named by its mint. Use `GET /v1/svm/token?address=` to see
the risk flags on one before you trade it, including `symbolCollision`, which reports the verified
mint that a lookalike is imitating.

Returns `{quotes[], failures[], refreshedAt, providersQueried, indicative}` ranked by output after
our fee. Two providers price by reading the pool state on-chain rather than asking an API
(`orca`, `meteora`), which is why they can win on pairs where the aggregators route around thin
liquidity.

### 6.5 Build

```bash
curl -sS https://swap.vurto.fi/v1/svm/swap \
  -H 'content-type: application/json' \
  --data '{
    "chainId": "solana-mainnet", "tokenIn": "USDC", "tokenOut": "SOL",
    "amount": "50", "wallet": "<your base58 address>", "slippageBps": 50
  }'
```

`provider` is optional: omit it and the best route is chosen for you, which costs one fan-out
before the build. When it picks the route itself, a route with GAIN comes first; if the first round has none, it re-quotes up to 3 rounds total (1.5 s apart) before falling back to the best route without gain, the same rule as Invoice. When the first round has no gain this costs up to two extra quote rounds plus 3 s of pauses, about 7-8 s more measured on Base on 02/10/2026; with gain in the first round it costs nothing. Pass a `provider` from a prior quote and that wait disappears.

The response is `{build: {quote, transaction, buildId, lastValidBlockHeight, simulation,
executionRef?}}`. `transaction` is a base64 v0 transaction, unsigned. `simulation.status` is
`passed` only after the build was run against the network and the output was proven to arrive at
the destination account, so treat anything else as a refusal to proceed.

`executionRef` is present or absent, and the difference decides how you send:

- **Absent** — we assembled the route ourselves. Sign and send it back to `POST /v1/svm/execute`
  with only `signedTransaction`; we broadcast it.
- **Present** — the route came from the meta-aggregator, and an RFQ leg may involve a market maker
  with last-look rights. It refuses a transaction altered after quoting, so it has to go back to it
  to land. Send `{executionRef, signedTransaction}`. Broadcasting it yourself raises no error, it
  simply never confirms.

### 6.6 Execute and confirm

```bash
curl -sS https://swap.vurto.fi/v1/svm/execute \
  -H 'content-type: application/json' \
  --data '{"signedTransaction": "<base64>", "executionRef": "<only if the build had one>"}'
```

Returns `{signature, status}`. Then record it, which also verifies it independently: the server
reads the transaction from the network and compares its fee payer against the wallet the build was
made for, so a transaction someone else paid for cannot be recorded as your volume.

```bash
curl -sS https://swap.vurto.fi/api/svm/history \
  -H 'content-type: application/json' \
  --data '{"buildId": "<from the build>", "signature": "<from execute>"}'
```

`409 tx_not_found_yet` means exactly that, not failure: the transaction has not reached the RPC's
view yet. Wait and retry. And before telling anyone the swap worked:

```bash
curl -sS 'https://swap.vurto.fi/v1/svm/tx?signature=<signature>'
```

`{status}` is `confirmed`, `pending`, `failed`, or `expired`. `expired` means the network is past
this transaction's `lastValidBlockHeight` and it can no longer enter any block, so nothing was
spent and nothing was swapped. We only say `expired` when the signature has NO status at all, not
even in transaction history, AND the height has passed. The signature status is asked first,
because it is the only answer that settles the question.

**Do not trust a client-side blockheight timeout as proof of failure.** `@solana/web3.js`
`confirmTransaction` throws `TransactionExpiredBlockheightExceededError` on its own deadline, and
that throw says nothing about whether the transaction landed. Measured on 17 Sep 2026 against
production: a basket threw exactly that, and the signature was `confirmed` with `err: null` in the
same block window, tokens moved and all. An integrator that treats the throw as failure and retries
executes the swap **twice**. Ask this endpoint, or `getSignatureStatuses` with
`searchTransactionHistory`, before you conclude anything.

### 6.7 N:N baskets

`POST /v1/svm/multi-quote` and `POST /v1/svm/multi-swap` take the same `inputLegs`/`outputLegs`
shape as §5.3, with the leg tokens named the Solana way. Unlike EVM, there is no router contract
involved. The server compiles the real instructions and keeps adding legs while the message stays
within 1232 bytes and 64 accounts; the response reports `executionPlan`, one unsigned transaction
per item in `lotes`, and the exact number of signatures. Each batch is atomic, but several batches
create partial-execution risk. To resume safely, send the same `correlationId`, increment
`buildAttempt`, and set `pendingLegIndexes`; confirmed legs must not be sent again. Token-2022
usually consumes more accounts/bytes and therefore can produce smaller batches.

### 6.8 Fees, and where the number comes from

Same rule as EVM, and it is not a percentage of the trade. We charge only when the chosen route
beats the runner-up, we take a slice of that difference and never the difference itself, and the
cap is 3 bps. A route with no measurable advantage is free. `gainUserUsd` on a quote is what the
user keeps after our cut, in dollars, and it is `null` when there was nothing to prove. Our own
slice is not part of the payload: `platformFeeBps` tells you a fee applies and how big it is,
which is what you need to reason about the trade.

## 7. Executing a Plan's Steps

> EVM only. Solana has no `steps[]` at all — see §6.5.

`steps[]` in a `SwapPlan` is ordered and must be executed in order:

- **`type: "approve"`** — an ERC-20 `approve(spender, amount)` call, calldata already built
  (`tx.to`, `tx.data`, `tx.value`). If `resetFirst: true`, this step zeroes the allowance first
  (some tokens, notably USDT, reject a non-zero-to-non-zero approve); a second `approve` step with
  the real amount follows it.
- **`type: "transaction"`** — the swap itself, ready-to-send calldata in `tx`.
- **`type: "signature"`** — sign `typedData` (EIP-712) with the wallet, no transaction to send.
  Then `POST` the fields in `submit.bodyTemplate` (plus your `signature`) to `submit.url` — see
  §5.5.

After sending any step, wait for its receipt before moving to the next step or considering the
swap done. Never report an `approve` through `POST /executions`. After an `approve` step, if `simulation.status` was
`approval_required`, call `POST /swap/{buildId}/refresh` on the build you approved (or `POST /swap`
with that build's `quote.id` as `quoteId`) to get the executable transaction now that the allowance
is in place. Do not rebuild from the intent alone: that quotes afresh and may pick another provider,
whose spender you never approved, and you pay for a second approve without swapping.

## 8. Refresh and Slippage Protection

A `SwapPlan` expires (`validUntil`) 10 minutes after it's built. Don't build a fresh plan from
scratch to extend that window — use `POST /swap/{buildId}/refresh` (§5.4), which:

- **Never loosens your slippage ceiling.** If you set `maxSlippageBps` at build time, every
  refresh of that build's lineage is capped by it, even if a later refresh call passes a higher
  `slippageBps` — the effective cap is always the smaller of the two. This exists specifically so
  a compromised or buggy client-side signing page can't quietly raise your tolerance until the
  swap becomes a donation.
- **Fails closed on a real route change.** If the refreshed build's final on-chain destination
  differs from the original (not just repriced — a genuinely different router or provider), it
  returns `409 route_changed` instead of silently building around a different route than the one
  you reviewed. When the original provider disappeared from the fan-out entirely, the error
  response embeds the current best route, ready to use, in `error.details.alternative` — you
  don't need a third round trip to get an executable plan back.
- **Reports the damage.** A successful refresh includes `slippageBps`: how many bps the output
  dropped versus the original build (0 if it didn't get worse).

If a refresh returns `409 quote_expired`, the underlying quote handoff (2 minutes) is gone — call
`POST /swap` fresh instead of retrying the refresh.

## 9. Before You Sign: What the Screen Checks and You Must Check Yourself

The Vurto screens read every transaction the server builds before the wallet opens, against constants carried in
the app itself, never against the API's own answer. A CLI or an MCP client signs what the server returns, so an agent
has to run the same checks, or it trusts the server more than a human on the website does:

- **The analysis fee wallet.** Any `feeWallet`, `analysis.to`, `charge.feeWallet` or `split.feeWallet` must be the
  official one: `0x8FFB387d2c152625936d57D23f5C956c2052aEAE` on every EVM chain, `9KwgTV9sr4ydmiG4fCHN6PuNGPsF86BqLVcAh5i4nDHT`
  on Solana. Invoices created before 01/11/2026 on Solana may still name the older fee wallet of the invoice itself
  (`FFiHFrFoa3knbcdxr4KVYekJmDRc28nfixmuZtgfmYyG`). Any other wallet: do not sign.
- **The fee ceiling.** The analysis fee is a fixed price, so the ceiling is in dollars, whatever the amount: above zero,
  below the amount itself, at most US$ 2.40 for the two wallets of an invoice or a private contract entry (`split.rule: "flat"`)
  and at most US$ 1.20 per consultation (the receiver's analysis bought apart, each batch destination, the vault withdrawal),
  only in a dollar stablecoin of the split with its real decimals, and the receiver gets exactly the amount minus the fee
  (`split.fee`, `split.receiverAmount`). On EVM a new invoice's `VurtoInvoiceSplitV2` also refuses a fee above 10% of the amount.
  A payment through the `VurtoPrivateSplit` (the private invoice and the Dead Alive private donation, paid only on their page, and
  since 19/11/2026 the public Dead Alive EVM donation by its `pay`) holds at most 10% of the amount plus US$ 1.20 and below it. Any
  private invoice, the private donation included, is signed by its page only up to 2% of the amount plus US$ 2.40 (since 19/11/2026,
  one ceiling, no donation mark). The
  vurto-swap CLI (0.3.25) does not know this contract and refuses any step to it ("is not a published Vurto split on this network"):
  a Dead Alive donation is paid on its page (alive.vurto.fi), never by the CLI.
  An older invoice keeps the ceiling of its rule: `brackets` at most 5% of the amount, and a Dead Alive donation
  (`analysisOf: "payer"`) at most 10% plus US$ 1.20 since 19/11/2026 when it is public (10% pure from 16/11/2026, and the V2 still caps
  the ones born on it at 10%); a private donation takes the private invoice ceiling above. A fee above that ceiling, or a receiver amount that does not add up, is not a Vurto fee: do not sign.
- **A swap: the vurto-swap CLI 0.3.19 checks it and signs it.** From 0.3.15 to 0.3.18 the CLI refused swaps, while independent
  reviews kept finding ways for a tampered swap plan to steal past a check by simulation (a router minimum on another token than the
  one asked, a 1inch `unoswap` or `clipperSwap` paying an arbitrary `dex`, an output token matched by symbol, an unread Jupiter route).
  0.3.19 (28/11/2026), after two rounds with nothing high or medium, switches `swap`, `nn-build` and `invoice pay --in` back on: the
  minimum comes from two independent price references (Velora, KyberSwap and OpenOcean on EVM; Jupiter and Raydium on Solana; the
  provider that built the route does not count), `--min-out` is required where fewer answer (a Jupiter route on Solana, a Velora route
  on Gnosis) and only raises that floor, a basket takes no `--min-out`, and every text from the server is printed marked
  `server says:`. An agent that signs a swap without the CLI must decode it and check it fully (simulate every step on a
  node that is not Vurto's with a realistic gas price, an independent minimum asked directly of an aggregator, the output token by
  address, the router's own minimum on that token), or send the person to https://swap.vurto.fi. Never sign a swap blind.
- **Older CLI versions.** Every tarball before the current one stays downloadable at `/cli/`, served with `Deprecation: true`,
  `Link: </cli/vurto-swap-0.3.25.tgz>; rel="successor-version"` and a `Warning` header: before 0.3.15 the CLI signs what the
  server returns, swaps included, without checking it; 0.3.15 checks, 0.3.16 adds the Check's choice of paid tools
  (`paid-check buy --tools`), 0.3.17 tightens the checks before signing batches, charges, the Check and Solana
  proofs (what already left is kept only on your machine), with swaps still refused, and 0.3.18 (26/11/2026) sends the payer's
  proof with `paid-check run` and `get` (before it they stop with `401 check_payer_proof_required`) and pays only the difference
  with a returned credit (`paid-check buy --credit`), and 0.3.19 (28/11/2026) checks and signs swaps again; 0.3.20 (30/11/2026) only updates the analysis minimums in its help, and 0.3.21 (30/11/2026) the analysis prices (0.40 USD a consultation); 0.3.22 (01/12/2026) checks the exact swap of `invoice pay --in` (only what is missing, against the balance it reads on an independent node), which 0.3.21 refuses; 0.3.23 (01/12/2026) reads the Solana swap accounts that decide who pays and receives (Jupiter, Orca, Meteora) only from the static keys of the transaction, the Jupiter platform fee only in the position that receives it, and refuses a Meteora host fee to another account; 0.3.24 (02/12/2026) reads the Velora swap whose surplus goes only to the user and the PancakeSwap v3 swap to the zero address (the router itself) that the Vurto server builds, which 0.3.23 refuses; 0.3.25 (02/12/2026) stops a Solana swap that expired before it was sent with `transaction_expired` when the node gives the cause only in its error code, where 0.3.24 said the node did not take it. Use the current version. Since 0.3.15 every request carries
  `x-vurto-cli: <version>`; the server logs it to know which versions are in use, and it grants nothing. The one thing it decides is
  compatibility: on `POST /v1/check/charge`, an absent version or one below 0.3.16 makes exactly `["crystal"]` mean the pair plus
  Crystal, as the older CLIs meant it. Nothing else reads it.
- **The transaction itself.** Decode it: on EVM the `to`, the token, the recipient and the amount of the `transfer`
  or of the split contract's `pay` or `payWithPermit` (the split and IBBs addresses are in `contracts/publicados.json`, the manifest the
  deploy gate and the on-chain watcher read); on Solana every top-level program (Compute Budget with a price at most
  5,000,000 micro-lamports per unit and at most 1,400,000 units, Jupiter v6, associated token accounts, Token and
  Token-2022, System only to wrap SOL into the payer's own wSOL account, and the 32-character payment memo), with no
  Approve, SetAuthority, CloseAccount (other than the payer's own wSOL back to the payer) or Transfer from the payer
  outside the split. Accounts read from an address lookup table come from an RPC: trust them only for public
  constants (the mint, System, Token, Token-2022).
- **The private contract (Vurto Private Contract).** It is screen-only today, with no API or MCP route. Never sign a
  vault deposit you got from anywhere else. The server makes the note; the payer never holds the nullifier or the
  secret and never sends a note. When one is offered to agents, on a private send the entry carries `entry.noteHash`
  (Poseidon of nullifier and secret, which gives neither back): the precommitment in the entry, the ticket and the deposit
  must be `Poseidon(entry.noteHash, owner)` computed with the receiving wallet you chose, and the entry and vault must be
  the ones in `contracts/publicados.json`. A private invoice carries no `noteHash` (the payer does not learn the receiver),
  so there the precommitment is the entry's, repeated by the ticket and the deposit.

## 10. Minimum Pre-Trade Checklist

- Check `simulation.status` before sending anything from `steps[]`. `approval_required` means
  send the approve step(s) first, then rebuild. `incomplete` means the transaction in `steps[]`
  was never independently verified — don't send it.
- Prefer refresh (§8) over rebuilding from scratch once you've set `maxSlippageBps`.
- Recompute `buildHash` from the plan's inputs if you don't trust the transport, and compare
  before signing — it's a canonical hash of chainId, wallet, destination, calldata, and value.
- Don't retry a `POST /swap` or `/refresh` call in a tight loop on `429` — respect the budget
  window.

## 11. Common Error Classes

| Code | Where | Meaning |
| --- | --- | --- |
| `token_required` / `unknown_symbol` / `ambiguous_token` | quote, swap, multi-quote | Token resolution — see §3.3 |
| `invalid_amount` / `amount_required` | quote, swap, multi-quote | Bad or missing `amount`/`amountRaw` |
| `same_token` | quote, swap | tokenIn and tokenOut resolved to the same address |
| `invalid_wallet` | EVM build, submission, refund, history | Missing or malformed signing wallet |
| `transaction_expired` | `/svm/execute` | The Solana transaction outlived its blockhash (about a minute). An earlier attempt may still have landed: check the signature with `GET /svm/tx`, passing `lastValidBlockHeight`, before building another |
| `invoice_swap_wrong_token` / `invoice_swap_below_amount` / `invoice_swap_above_amount` | `/swap`, `/svm/swap` with `invoiceId` | A swap delivering to the receiver of an invoice must pay it: its token, with a minimum between the amount and 10% above it. Refused before you sign |
| `batch_charge_stale` | `/payouts/charge/transaction` | Old charge, or a fee wallet no longer in use. Do not pay it: build the batch again |
| `analysis_payment_rejected` | `/payouts/charge`, `analysis-payment` | That transaction does not pay this charge; see `details.reason`. `charge_not_tied`: not the transaction we built, do not pay again, prove the wallet and report the same hash |
| `analysis_payment_pending` | `/payouts/charge`, `analysis-payment` | Not mined yet: send the same hash again, do not pay again |
| `tx_already_used` | `/payouts/charge`, `analysis-payment`, `payments` | That hash already paid something else. One transaction pays one charge, even with simultaneous reports. In `/payouts/payments` it comes per invoice in `refused`, and the others still count |
| `recipient_not_a_wallet` | `POST /invoices`, `/payouts` (with `details.index`), `/destination/challenge` | The address is invalid on this network, or it is a token or a program: money sent there is stuck. Ask the receiver for their wallet. |
| `recipient_is_fee_wallet` | `POST /invoices`, `/payouts` (with `details.index`), `/pay`, `payments` | A Vurto fee wallet cannot receive an invoice |
| `recipient_unavailable` | `POST /invoices`, `/payouts` (with `details.index`) | Nobody receives by that `@handle` on this network (it does not exist, or has no wallet here). Check the handle or use the address |
| `recipient_handle_unavailable` | `POST /invoices`, `/payouts` | Paying by `@handle` is down for a moment (503). Try again, or use the address |
| `recipient_not_vurto_user` | `POST /invoices` (`confidential: true`), `POST /api/cofre/entrada` (Send Privately) | The private contract only sends to a Vurto user: use their `@handle`, or a wallet linked to their Vurto profile. Nothing was charged |
| `recipient_check_unavailable` | `POST /invoices` (`confidential: true`), `POST /api/cofre/entrada` | Could not ask the Vurto Profile whether the recipient is a Vurto user (503). Nothing was charged; try again |
| `batch_charge_not_found` | `/payouts/charge`, `/payouts/charge/transaction` | No charge with this `loteId` for this payer |
| `receiver_blocked` / `payer_blocked` | `/payouts`, `/invoices` | A wallet failed the free screening; `details.index` says which row |
| `batch_duplicate_recipient` / `batch_self_payment` / `too_many_recipients` | `/payouts` | Fix the list; `details.index` says which row |
| `payer_balance_short` (409) | `/payouts` | Swap to your own wallet first (`/v1/swap`, `/v1/svm/swap`, no receiver), then build again; `details.needed`, `have`, `short` in token units |
| `stablecoin_required` / `check_not_available_on_chain` | `/payouts`, `/invoices` | The paid analysis needs a known stablecoin, on a network that check covers |
| `charge_swap_below_amount` / `charge_swap_above_amount` / `charge_swap_wrong_token` | `/swap`, `/svm/swap` with `loteId` or `invoiceId` | The swap that pays a charge must deliver its token, between the charge and 10% above it. Refused before you sign |
| `destination_not_authorized` | `/swap`, `/svm/swap` | Prove the destination, or send the `loteId`/`invoiceId` of an open charge whose fee wallet is the `receiver` |
| `no_routes` | quote, swap, multi-quote | No provider returned a safe route for this pair/amount right now |
| `insufficient_balance` | swap | The wallet doesn't hold enough of the input token |
| `quote_expired` | swap, refresh | The underlying quote handoff (2 min) is gone — quote again |
| `route_changed` | swap, refresh | The selected route disappeared or its final destination changed |
| `slippage_exceeded` | refresh, Solana swap | The refreshed price dropped more than the effective cap allows. On Solana: the route did not fit in one transaction, and the simpler route that fits pays less than your `slippageBps` allows; quote again |
| `transaction_too_large` | Solana swap, multi-swap | The route does not fit the network's 1232-byte transaction even after asking Jupiter for simpler routes; quote again, or pick another provider |
| `build_not_found` | refresh | Wrong wallet, or the build's 10-minute window expired |
| `invalid_slippage_bps` | swap, refresh | `slippageBps`/`maxSlippageBps` outside [0, 10000] |
| `invalid_input_legs` / `invalid_output_legs` / `too_many_legs` | multi-quote | Basket shape: need >=1 of each, and inputLegs+outputLegs <= 10 — see §5.3 |
| `invalid_output_percent` | multi-quote | An outputLegs percent isn't an integer 1-100, or they don't sum to 100 |
| `multi_swap_not_supported_on_chain` | multi-quote | VurtoSwapRouter isn't deployed on this chainId yet |
| `scope_required` | any credentialed call | The credential lacks the scope this call needs |
| `budget_exhausted` | any credentialed call | Over the 240-cost/60s budget for this credential |
| `secret_in_payload` | any write | The request body looks like it contains a private key or seed phrase |

## 12. Response Fields Agents Should Persist

- `buildId` and `buildHash` from every `SwapPlan` — needed to refresh, and to prove later what was
  actually signed.
- `quotes[].id` (the `quoteId`) if you plan to build later instead of immediately.
- `uid` from `POST /orders` — the only identifier a CoW order has; there's no transaction hash.
- `id` from `POST /executions` — your handle for `GET /executions/{id}` later.
