Skip to content
Concepts

Glossary

Account. An address on one chain, { chain, address }. An order binds one to each of its roles: payer, recipient and refundTo.

Attestation (quote terms). Khalani’s signature over a quote option, carried inside its id. It pins POST /v3/orders to the quoted numbers until the quote’s expiresAt.

CAIP ids. Chain-neutral identifiers: CAIP-2 for a chain (eip155:42161), CAIP-19 for an asset, CAIP-10 for an account. See Conventions.

Child intent. The remainder of a partly filled intent, re-published with the parent’s exact terms and a smaller amount. See Intents and orders.

Collaborative solving. Filling one order from several sources of liquidity, settled atomically or across partial fills. See Collaborative solving.

Commission. Your fee, in basis points, paid to your commission wallet on the hub when an order settles.

Deadlines. An order has two, counted from its creation: fundBy, to send the deposit by, and fillBy, after which it takes no more fills. Both come from your account’s order deadlines.

Deposit contract. The contract on a spoke that holds deposited tokens and releases payouts and refunds. Non-EVM chains have none: deposits go to a per-order deposit address, handled by an operated bridge service.

Funding steps. What the user’s wallet runs to fund an order, listed in its steps: approvals and a deposit on EVM, or one transfer on a non-EVM chain.

Flat fee. A fixed fee per order: the source asset’s depositFee plus the destination asset’s withdrawFee. It is kept in full, even on an order that never fills.

Hub. The chain that keeps Khalani’s books. Orders are published, filled and settled there.

Integrator. You: the party that holds an API key and creates orders for its users.

Intent. A declaration of an acceptable outcome, authorized by its owner, with its source value escrowed. An order becomes one intent on the hub. See Intents and orders.

Just-in-time intent. An intent a solver publishes and consumes in the same transaction, to supply the part of a fill that other legs don’t cover.

mToken. The hub’s one-to-one ledger entry for one token on one spoke, minted on deposit and burned on withdrawal.

Netting. Filling orders against each other, so each order’s escrow pays another’s output.

Option. One way to make a quoted trade, from POST /v3/quote: what it requires of the user’s wallet, the accounts it needs, and its terms. Its id creates one order.

Order. What POST /v3/orders creates: an order record, its signed terms, the steps that fund it, and the intent it becomes on the hub once funded.

Payer. The account that sends an EVM order’s deposit. The deposit must come from it. An order from a non-EVM chain has none: anyone may send its transfer.

Partial fill. A fill of part of an order, at no less than the order’s rate. The rest stays open as a child intent.

Rate. The least an order receives per unit of source. On the hub it applies to the amount left after fees, and every fill must meet it. The order shows it over the whole deposit, fees included, as terms.minRate.

Recipient. The account that receives an order’s payout, on the destination chain.

Recovery. The field on every API error that says what to do next: fix the request, request a new quote, retry, read the order, restart a sync, or contact Khalani. See Errors and retries.

Refund account (refundTo). The account that receives an order’s refund, on the source chain, and signs its cancel.

Relayer. The operated service that carries deposits from spokes to the hub, and withdrawals from the hub to spokes. The hub trusts what authorized relayers deliver.

Root intent. The first intent of an order, published when its deposit arrives.

Settlement. The one hub transaction that closes an order: it pays the filled part what its fills delivered, at least the order’s rate and at most its quote, refunds the unfilled share of the deposit after the flat fee, and takes the fees.

Slippage. How far under its quote an order may fill, in basis points (slippageBps). The order’s rate is the quote less the slippage.

Solution. What a solver submits through intent sequencing: a graph of which escrow pays which output. The hub validates it and applies it atomically, every leg or none.

Solver. An independent agent, authorized to submit solutions, that fills intents and is paid its spread. See Solvers and solver markets.

Solver market. The network of solvers competing to fill orders, seen from the side of the party publishing them. From a solver’s side, the same book is an intent market.

Spoke. A chain your users hold tokens on. Its custody holds deposits and releases payouts: a deposit contract on EVM spokes, an operated bridge service on non-EVM ones.