# Versioning Source: https://docs.rhinestone.dev/api-reference/api-versioning How the Rhinestone API evolves, how to pin a version, and how to migrate between them. The Rhinestone API is versioned. Pin a version via the `x-api-version` header and upgrade on your own schedule — new versions are additive and opt-in. ## Why versioning The API evolves as Rhinestone adds chains, settlement layers, and new intent patterns. Versioning lets us ship those changes without forcing every integrator to migrate in lockstep. We use dated versions (`YYYY-MM.name`) rather than semver-style major versions. Semver majors tend to hoard changes into rare, big-bang releases — each bump looks like a migration project, so teams avoid shipping them. Dated versions normalise small, frequent bumps, so each one carries a small diff. The `.name` suffix gives each release a human handle. We name versions after mountains, one per letter — `alps`, `blanc`, `caucasus`, and so on. It's easier to say "switch to Caucasus" than "switch to 2026-09". ## Pinning a version The direct HTTP guides use Caucasus. Pin it by sending `x-api-version` on every request, including submission and reads: ```ts {6} theme={null} const res = await fetch("https://v1.orchestrator.rhinestone.dev/quotes", { method: "POST", headers: { "Content-Type": "application/json", "x-api-key": apiKey, "x-api-version": "2026-09.caucasus", }, body: JSON.stringify(payload), }); ``` The format is `YYYY-MM.name`. Always send the header — requests without it fall back to the deprecated `2026-01.alps` shape, and unknown or malformed values return `400 VALIDATION_ERROR`. ## Compatibility ### What we can change without a new version Within a version, we treat the response schema as open. These changes ship freely: * New optional request fields * New response fields * New enum variants in responses (e.g. a new `settlementLayer`) * New endpoints * Widened request validation * Changed default values ### What your client must do To consume those changes safely: * **Ignore unknown fields.** If you use a strict JSON parser (Go's `DisallowUnknownFields`, Rust `serde(deny_unknown_fields)`, Jackson's `FAIL_ON_UNKNOWN_PROPERTIES`), disable it for our responses. * **Handle unknown enum values gracefully.** A `switch` on `settlementLayer` that throws on default will break the day we add a new one. Treat unknown values as "not supported by this client" and fall back. * **Preserve native signing payloads.** On Caucasus, dispatch on each `signingRequests[].payload.kind` and return proofs in the same order. For EIP-712, forward the supplied `typedData` to `wallet.signTypedData()` without reconstructing its types. See [signing requests and proofs](#sign-requests-and-submit-ordered-proofs). * **Treat quote 404s as normal.** Quoted intents are stored server-side with a short TTL. If a quote expires or the quote store restarts, you'll see 404 on submit. Re-quote — don't retry the submit. * **Take `routes[0]` unless you have your own criteria.** The array is server-ranked by a cost/speed tradeoff. Re-sorting client-side usually degrades route quality. ### What triggers a new version * Removing or renaming any field * Adding a required request field * Changing a field's type * Restructuring request or response shape * Narrowing request validation * Making a required response field optional or nullable * Removing an endpoint ### Deprecation lifecycle Fields deprecated in version N remain present and documented as deprecated; they're removed in N+1. Versions themselves are not routinely deprecated — each version is intended to stay live indefinitely so you never have to migrate on our clock. The one exception is `2026-01.alps`, which will be sunset after integrators migrate to `blanc`. The shape difference between the two is large enough that maintaining both long-term isn't practical. Future version transitions will follow the standard per-field deprecation rule. ## Versions ### `2026-09.caucasus` Caucasus introduces per-VM accounts, explicit source and destination assets, native execution, and ordered signing requests and proofs. The endpoint paths stay the same: * `POST /quotes` * `POST /quotes/estimate` * `POST /intents` * `GET /intents/{id}` * `GET /intents` #### Migrating from Blanc This section covers direct HTTP integrations, not changes to the SDK’s methods or configuration. Pin Caucasus on every request, including submission and reads: ```ts theme={null} const headers = { "Content-Type": "application/json", "x-api-key": apiKey, "x-api-version": "2026-09.caucasus", }; ``` Keep API keys server-side. Your existing authentication method does not change. Changing the header alone is not enough: update request bodies, signing, and response parsing together. Requests without a version header still default to Alps. The examples below use application-defined `postBlanc`, `postCaucasus`, `getBlanc`, and `getCaucasus` HTTP helpers. Each sends the corresponding version header and rejects non-2xx responses. ##### Restructure quote requests Caucasus names one funding pair in `source` and one delivery asset in `destination`. Replace source allowlists and destination token arrays with explicit chain and token fields. ```ts theme={null} const baseUsdc = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"; const arbitrumUsdc = "0xaf88d065e77c8cc2239327c5edb3a432268e5831"; // Before: Blanc const blancBody = { account: { address: accountAddress, accountType: "EOA", }, accountAccessList: { chainIds: ["eip155:8453"], tokens: [baseUsdc], }, destinationChainId: "eip155:42161", tokenRequests: [{ tokenAddress: arbitrumUsdc, amount: "10000000" }], }; // After: Caucasus const caucasusBody = { account: { evm: { type: "eoa", address: accountAddress, }, }, source: { vm: "evm", chainId: "eip155:8453", token: baseUsdc, }, destination: { vm: "evm", chainId: "eip155:42161", token: arbitrumUsdc, amount: "10000000", }, }; ``` This requests 10 USDC on Arbitrum, funded with Base USDC. It does not fix the input amount. | Blanc | Caucasus | | - | - | | `accountAccessList` | Select one `source.chainId` and `source.token` | | Per-token `accountAccessList.chainTokenAmounts` | `source.maxAmount` | | `options.auxiliaryFunds[chainId][tokenAddress]` | `source.auxiliaryFunds` | | `preClaimExecutions[chainId]` | `source.execution.calls` | | `destinationChainId` | `destination.chainId`, alongside `destination.vm` | | `tokenRequests[].tokenAddress` | `destination.token` | | `tokenRequests[].amount` | `destination.amount` | | `recipient` | `destination.recipient` | If your Blanc integration relied on automatic or multi-source funding, choose the source chain/token pair before requesting a Caucasus quote. Do not translate an allowlist by silently taking its first entry. Amounts, caps, auxiliary funds, and EVM call values use decimal strings in their respective base units. For binding quotes: * `source.maxAmount` optionally caps the observed source balance available to the planner. It is not an exact-input amount. * `destination.amount` specifies the requested output. Omit it for max-out. * Omit `destination.token` only when there is no token delivery. * `source.amount` belongs to estimates, not binding quotes. **Preserve balance-credit semantics.** For a self-send without destination execution, an existing destination balance can count toward the requested amount when it is also eligible as the funding source. The example selects Base USDC, so existing Arbitrum USDC does not reduce the requested delivery. **Caps apply before auxiliary funds.** Available funds are the capped observed balance plus the declared auxiliary amount—not the combined balance capped afterward. Source calls and auxiliary funds are currently EVM-only. Auxiliary funds remain an assertion that funds will be available by execution time, not a transfer performed by quoting. Source calls retain their pre-claim timing. ##### Configure accounts per VM Replace the flat EVM account with `account.evm`. An address-only entry is a receiver, not a spending account: include `type` when the account must fund or execute the intent. | Blanc | Caucasus | | - | - | | `account.accountType: "EOA"` | `account.evm.type: "eoa"` | | `account.accountType: "ERC7579"` | `account.evm.type: "erc7579"` | | `account.address` | `account.evm.address` | | `account.setupOps` | `account.evm.initData.setupOps` | | `options.signatureMode` | `account.evm.signatureMode` | | `account.mockSignatures["0"]` | `account.evm.simulation.mockSignature` | | `account.mockSignatures["8453"]` | `account.evm.simulation.mockSignaturesByChain["eip155:8453"]` | | `account.delegations["0"]` | `account.evm.delegations.default` | | `account.delegations["8453"]` | `account.evm.delegations.chains["eip155:8453"]` | `signatureMode` remains a numeric enum, not a string such as `"ECDSA"`. Simulation stubs and setup operations belong to ERC-7579 accounts. Solana spending uses `account.svm`. For a standalone, already-created Swig: ```ts theme={null} const account = { svm: { type: "swig", address: swigWalletAddress, swigAccount: swigStateAddress, authorization: { kind: "secp256k1", address: authorityAddress, }, }, }; ``` `address` is the asset-holding wallet; `swigAccount` is the state account containing its roles. They are not interchangeable. P-256 authorities use `kind: "secp256r1"` with their compressed `publicKey`. You can supply EVM and SVM entries together, but this does not authorize arbitrary wallet pairings. The orchestrator checks the supported pairing, account identity, and signing authority. ##### Move destination execution Group execution with its destination: | Blanc | Caucasus | | - | - | | `destinationExecutions` | `destination.execution.calls` | | `destinationGasLimit` | `destination.execution.gasLimit` | | `options.executionTokensReceived` | `destination.execution.executionTokensReceived` | | `destinationInstructions` | `destination.execution.instructions` | | `addressLookupTableAddresses` | `destination.execution.addressLookupTables` | For EVM calls: ```ts theme={null} // Before: fields on the Blanc quote body const blancExecution = { destinationExecutions: calls, destinationGasLimit: "200000", }; // After: fields inside the Caucasus destination const destination = { ...caucasusBody.destination, execution: { calls, gasLimit: "200000", }, }; ``` Each EVM call still contains `to`, `value`, and `data`. Preserve call order. An explicit receiver is `destination.recipient: { address }`. Configured EVM recipients use the same lower-case account types and nested setup/delegation fields, but do not carry the spender’s `signatureMode`. Solana delivery requires a recipient. Solana execution instead runs from the configured Swig: omit `recipient` and encode any payee in the instructions. Tron and Stellar destinations are delivery-only. A request without `source` is restricted to no-delivery intents with effective sponsorship covering the applicable orchestrator costs. It cannot fall back to another account balance. Sponsorship does not fund arbitrary caller-authored EVM call value. ##### Read the quote plan and requirements Blanc returns `{ routes }`. Caucasus returns `{ status: "quoted", routes }`. ```ts theme={null} // Before const blancQuote = await postBlanc("/quotes", blancBody); const { signData, tokenRequirements } = blancQuote.routes[0]; // After const caucasusQuote = await postCaucasus("/quotes", caucasusBody); if (caucasusQuote.status !== "quoted") { throw new Error("Unsupported quote outcome"); } const route = caucasusQuote.routes[0]; const { plan, requirements, signingRequests } = route; ``` Each route declares its `purpose`: * `execution`: token delivery or execution. * `deployment`: a separate account-creation intent. Review `plan.source`, `plan.destination`, and `plan.deployments` before signing. Execution disclosures identify whether the account or a solver runs the caller’s calls. A plan describes intended behavior, not completed execution or every transaction-internal operation. `requirements[]` replaces the chain-keyed `tokenRequirements` map: * `erc20Approval` names the account, chain, token, amount, and spender. * `wrapNative` names the account, chain, token, and amount. The array is always present. An empty array means no preflight requirement; `status: "quoted"` does not mean nonempty requirements are already fulfilled. Route ranking, expiry, and the existing `cost.input`, `cost.output`, and `cost.fees` structure remain. Caucasus presents same-chain routes as `SAME_CHAIN`, including smart-account routes that Blanc labelled `INTENT_EXECUTOR`. When present, `bridgeFill.destinationChainId` is a chain-reference string. ##### Sign requests and submit ordered proofs Replace role-specific signature slots with one ordered array: ```text theme={null} signingRequests[i] → proofs[i] ``` Every request includes its account, authority, scope, purpose, chain references, validity constraints, and native `payload`. Do not sort, deduplicate, or omit requests—even when two payloads are identical. Proof count, order, and kind must match the selected route’s requests. This example assumes preflight requirements are satisfied and every signing request uses the same EOA with EIP-712 signing, without EIP-7702 delegation: ```ts theme={null} // Before: Blanc const beforeRoute = blancQuote.routes[0]; const origin = []; for (const data of beforeRoute.signData.origin) { if (data.kind !== "eip712") { throw new Error("This example only handles EIP-712"); } origin.push(await signer.signTypedData(data)); } const destinationSignature = beforeRoute.signData.destination ? await signer.signTypedData(beforeRoute.signData.destination) : undefined; await postBlanc("/intents", { intentId: beforeRoute.intentId, signatures: { origin, destination: destinationSignature, }, }); // After: Caucasus const proofs = []; for (const request of route.signingRequests) { const payload = request.payload; if (payload.kind !== "eip712" || payload.signatureFormat !== "secp256k1") { throw new Error("This example only handles EOA EIP-712 proofs"); } proofs.push({ kind: "eip712", signature: await signer.signTypedData(payload.typedData), }); } await postCaucasus("/intents", { intentId: route.intentId, proofs, }); ``` For other signing paths, select the signer from the request’s authority and dispatch on `payload.kind`: | Payload kind | Proof and encoding | | - | - | | `eip712` | `{ kind: "eip712", signature }`. Sign the supplied `typedData`. Account-format requests require the account’s native signature encoding, not necessarily a 65-byte EOA signature. | | `personalSign` | `{ kind: "personalSign", signature }`. Sign `payload.message.value` as UTF-8 text, not decoded hex bytes. | | `eip7702` | `{ kind: "eip7702", nonce, signature: { r, s, yParity } }`. Use the requested chain and delegate; supply the authorization nonce used by the signer. | | `webauthn` | `{ kind: "webauthn", assertion }`. Decode the hex challenge to bytes before requesting the assertion. | For WebAuthn, send `credentialId` as base64url, `authenticatorData` as hex, the original UTF-8 `clientDataJSON`, and the P-256 signature as 64-byte hex `r || s`, not DER. Do not parse and serialize `clientDataJSON` again. For an account-verified origin request that needs two signature encodings, Blanc’s `{ preClaimSig, notarizedClaimSig }` becomes: ```ts theme={null} const proof = { kind: "eip712", signature: { preClaim, notarizedClaim, }, }; ``` This is one proof, not two. It is not accepted for every account-format request. Separate `authorizations.sponsor` and `authorizations.recipient` bags disappear. Answer the corresponding EIP-7702 requests in `proofs[]`. Caucasus requests concrete-chain authorizations; a configured delegation default is not an any-chain authorization proof. Honor every returned validity constraint as well as route expiry. A Solana slot deadline can expire before `route.expiresAt`. Never reconstruct or rewrite native signing payloads: their chain values retain native formats, including numeric EIP-712 and EIP-7702 chain IDs. Submission still returns `{ intentId }`. That acknowledges submission, not completion. Poll the intent before starting a replacement when the submission outcome is uncertain. ##### Update sponsorship Rename `options.sponsorSettings` to `options.sponsorship`: ```ts theme={null} // Before const blancOptions = { sponsorSettings: { gas: true, bridgeFees: true, swapFees: false, }, }; // After const caucasusOptions = { sponsorship: { gas: true, bridgeFees: true, swapFees: false, }, }; ``` The same rename applies to estimates. Fee flags retain their meanings; requesting sponsorship does not bypass authorization, policy, or available-budget checks. If you issue intent-bound sponsorship grants, update the approval binding too. The approved input is: ```ts theme={null} const approvalInput = { contractVersion: "sdk-3.0.0-caucasus", account: body.account, ...(body.source !== undefined && { source: body.source }), destination: body.destination, options: body.options ?? {}, }; ``` The digest is SHA-256 of the RFC 8785 canonical JSON representation, encoded as lowercase hex. Preserve supplied wire values, explicit `false` settings, and array order. Omit an absent `source`; use `{}` for absent `options`. Do not reuse a Blanc digest. The approval-contract identifier is distinct from the HTTP version header and must match exactly. See [sponsorship](/transactions/sponsorship/overview) for policy configuration. ##### Update intent reads Continue polling `GET /intents/{intentId}`. Add `?full=true` for extended details. Overall statuses remain `PENDING`, `COMPLETED`, and `FAILED`. | Blanc | Caucasus | | - | - | | `accountAddress` | Optional `accounts[]` summaries, tagged by VM and chain | | `operations[].chain` | `operations[].chainId` | | `operations[].items[].txHash` | `operations[].items[].transaction` | | Refund `{ chain, txHash }` | Refund `{ transaction }` | | `details.id` | Top-level `intentId` | | String `details.recipient` | Optional `{ vm, chainId, address }` | | Source/destination leg `chain` and `txHash` | `chainId` and `transaction` | | Flat `details.executions` and separate Solana execution | `details.executions.source[]` and `.destination` | | Top-level `hyperCore.outcome` | Native result on an `EXECUTION` operation | For transaction links: ```ts theme={null} // Before const before = await getBlanc(`/intents/${intentId}`); const oldTransactions = before.operations.flatMap(({ chain, items }) => items .filter((item) => item.txHash) .map((item) => ({ chain, txHash: item.txHash })), ); // After const after = await getCaucasus(`/intents/${intentId}`); const transactions = after.operations.flatMap(({ items }) => items.flatMap((item) => "transaction" in item && item.transaction ? [item.transaction] : [], ), ); ``` Dispatch transaction references by `vm`: | VM | Identifier | | - | - | | `evm` | `txHash` | | `svm` | `signature` | | `tvm` | `txId` | | `stellar` | `txHash` | | `unknown` | Original stored `id` | Known chain references use strings such as `eip155:8453` or `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`. Blanc quote requests already used chain-reference strings; its read/list projections used numeric chains. Historical records that cannot be mapped to a known chain can retain numeric chain IDs and `vm: "unknown"`. Do not invent an EVM chain reference for them. Full details retain `nonce` in hex and add optional deployment summaries. Keep `intentId` as a string; it can exceed JavaScript’s safe integer range. Treat missing historical accounts, authorities, executions, or deployment data as unavailable—not as empty data or proof that nothing happened. Execution details describe intended execution, not per-call results. `refunds: []` means no refund has been observed, not that a failed intent can never be refunded. A transaction reference alone is not proof of finality. Recorded cost amounts remain integer micro-USD. `details.cost.sponsored` describes recognized sponsorship coverage and can be true while billed amounts are zero or absent. ##### Update intent lists `GET /intents` keeps its `{ data, pagination }` envelope. | Blanc list item | Caucasus list item | | - | - | | `id` | `intentId` | | `account` | Optional `accounts[]` | | `fromChains` | `sourceChainIds` | | `toChain` | Optional `destinationChainId` | | `token`, `amount`, `symbol`, `decimals` | Optional `value` object, including `side`, `chainId`, and `tokenAddress` | ```ts theme={null} // Before const beforePage = await getBlanc("/intents?limit=20"); const oldSummaries = beforePage.data.map((item) => ({ id: item.id, amount: item.amount, symbol: item.symbol, })); // After const afterPage = await getCaucasus("/intents?limit=20"); const summaries = afterPage.data.map((item) => ({ id: item.intentId, side: item.value?.side, amount: item.value?.amount, symbol: item.value?.symbol, })); ``` `value.side` distinguishes planned output from retained input. The summary is not a wallet balance change, realized swap result, or proof of delivery. `value` is omitted when no single amount truthfully represents the intent, including deployment-only and historical multi-token cases. Pass `pagination.nextCursor` back unchanged as `cursor`; it is not an intent ID. Caucasus lists can include non-EVM accounts that Blanc excludes, so identical pagination requests need not return identical records. ##### Migrate estimates `POST /quotes/estimate` uses the same source/destination grouping, but its account descriptors are hypothetical. They contain account types, not wallet addresses or signing configuration. ```ts theme={null} // Before: Blanc, exact-in const blancEstimate = { direction: "exactIn", sourceChainId: "eip155:8453", sourceToken: baseUsdc, destinationChainId: "eip155:42161", destinationToken: arbitrumUsdc, amountIn: "10000000", accountType: "SMART_ACCOUNT", accountDeployed: true, }; // After: Caucasus, exact-in const caucasusEstimate = { account: { evm: { type: "erc7579" }, }, source: { vm: "evm", chainId: "eip155:8453", token: baseUsdc, amount: "10000000", assumptions: { deployed: true }, }, destination: { vm: "evm", chainId: "eip155:42161", token: arbitrumUsdc, }, }; ``` Caucasus infers direction from exactly one amount: | Estimate | Blanc | Caucasus | | - | - | - | | Exact-in | `direction: "exactIn"` and `amountIn` | `source.amount` | | Exact-out | `direction: "exactOut"` and `amountOut` | `destination.amount` | For exact-out, remove the source amount and set the destination amount: ```ts theme={null} const { amount: _amount, ...source } = caucasusEstimate.source; const exactOutEstimate = { ...caucasusEstimate, source, destination: { ...caucasusEstimate.destination, amount: "10000000", }, }; ``` Do not send `direction`, `amountIn`, or `amountOut`. Supplying both amount sides—or neither—is invalid. Estimate responses move financial fields into `cost`: ```ts theme={null} // Before const beforeEstimate = await postBlanc("/quotes/estimate", blancEstimate); const oldInput = beforeEstimate.routes[0].input; const oldFees = beforeEstimate.routes[0].fees; // After const afterEstimate = await postCaucasus("/quotes/estimate", caucasusEstimate); const input = afterEstimate.routes[0].cost.input[0]; const fees = afterEstimate.routes[0].cost.fees; const assumptions = afterEstimate.routes[0].assumptions; ``` `output` likewise becomes `cost.output[]`. The response reports the account assumptions used. `source.assumptions.deployed` applies to the source ERC-7579 account. Omission assumes undeployed; the field is ignored for EOA and Swig accounts. Estimates do not accept quote-only caps, auxiliary funds, recipients, or execution. They do not apply actual destination-balance credit and return no executable intent ID or signing requests. Obtain a binding quote before signing or submitting. ##### Migrate HyperCore actions and outcomes HyperCore is a native destination variant: ```ts theme={null} // Before: fields on a Blanc quote body const blancHyperCore = { destinationChainId: "hypercore:perp", options: { hyperCore: { actions }, }, destinationExecutions: settlementCalls, destinationGasLimit: "200000", }; // After: the Caucasus destination const hyperCoreDestination = { vm: "hypercore", chainId: "hypercore:perp", token: hyperEvmUsdc, amount: "10000000", execution: { actions, settlement: { calls: settlementCalls, gasLimit: "200000", }, }, }; ``` Use one ordered `actions[]` array. A former singular `options.hyperCore.action` becomes a one-element array. Keep caller-authored HyperEVM calls in `execution.settlement`, separate from Core actions. Preserve `hypercore:spot` versus `hypercore:perp`. Neither is interchangeable with HyperEVM’s `eip155:999` settlement chain or a signing-domain chain ID. USDC delivery addressing and units remain unchanged. On reads, replace `hyperCore.outcome` with the aggregate venue operation: ```ts theme={null} const outcome = intent.operations .flatMap(({ items }) => items) .find((item) => item.type === "EXECUTION" && item.result.vm === "hypercore") ?.result.outcome; ``` HyperEVM transaction evidence remains separate. A list entry’s `destinationChainId` can name the HyperCore venue while `value.chainId` names HyperEVM. `accepted` means the exchange accepted the action, not that an order filled completely. Reconcile `unknown` and `partial` outcomes against HyperCore before retrying; blindly repeating a batch can duplicate successful orders. ##### Respect capability boundaries A schema variant does not guarantee an available route. Chain/token support, account authority, settlement providers, sponsorship, and environment configuration still apply. | Flow | Boundary | | - | - | | EVM → Solana | Token delivery is supported; cross-chain execution of caller instructions from the destination Swig remains deferred. | | Solana → Solana | Supported SPL-token transfers and caller instructions require an existing authorized Swig. Do not assume arbitrary swaps or native-SOL transfers. | | Solana → EVM | Destination calls require the supported EVM-derived Swig pairing and its ordered proofs. | | Native SOL origin | Limited to the supported Relay Solana → EVM path; rent is excluded from spendable funds. | | Tron and Stellar | Delivery-only destinations, not additional funding or execution environments. | A missing Swig needed for spending returns `SOLANA_ACCOUNT_NOT_CREATED`. Quoting does not silently create it. Separate sponsored Swig creation uses an ordinary `status: "quoted"` response with a `purpose: "deployment"` route. Rent is disclosed separately in `deploymentCosts`; `signingRequests` is empty and submission uses `proofs: []`. This is not automatic creation-plus-spend or a `deploymentRequired`/re-quote response. Creation trusts the supplied root authority: verify it before creating or funding the wallet. Do not assume it is safe to fund an undeployed Swig. Sponsored Swig authority changes are separate typed operations, not arbitrary caller instructions. Existing role permissions and lockout protections still apply. ##### Migration checklist Before switching traffic: * Pin Caucasus on quote, estimate, submit, and read requests. * Select one funding pair and preserve the intended balance-credit behavior. * Review the route plan and fulfill preflight requirements. * Handle supported signing kinds without changing payloads or proof order. * Update intent-bound sponsorship bindings alongside request bodies. * Parse native transaction references and tolerate unavailable historical data. * Reconcile uncertain submissions and HyperCore outcomes before creating replacement intents. Blanc remains a separate version. Do not reinterpret an existing quote’s signing data as a Caucasus response. ### `2026-04.blanc` The previous contract used by Blanc integrations. Keep this header when continuing to use Blanc request and response shapes; follow the [Caucasus migration](#migrating-from-blanc) to upgrade. The endpoint reference documents Caucasus; Blanc's schema is in the published [`2026-04.blanc` OpenAPI document](https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/blanc.json). **What changed:** * **Flat `routes[]` array.** Each route carries its own `intentId`, `cost`, `signData`, and `tokenRequirements` (EOAs only — smart accounts handle approvals internally). Pre-ranked; `routes[0]` is recommended. * **CAIP-2 chain ids.** Every chain id on the wire is now an `eip155:` string — `1` becomes `"eip155:1"`. Affects scalar fields, arrays, and chain-keyed maps. Path parameters are unchanged. * **EIP-712 typed data in the response.** Forward `signData.origin[]` and `signData.destination` directly to `wallet.signTypedData()`. No more client-side type reconstruction. * **Server-stored intents.** `POST /quotes` returns an `intentId`; the full intent stays server-side. Submit via `POST /intents` with `{ intentId, signatures }` — no more round-tripping `intentOp`. * **Resource-style endpoints.** `POST /quotes` (was `/intents/route`), `POST /intents` (was `/intent-operations`), `GET /intents/:id` (was `/intent-operation/:id`), `POST /intents/splits` (was `/intents/split`). * **Flattened cost structure.** One `cost` object per route with `input`, `output`, and `fees: { total, breakdown }`. Replaces scattered `tokensSpent` / `tokensReceived` / `feeBreakdownUSD` / `gasCost` / `sponsorFee`. * **Submit response collapsed.** `POST /intents` returns just `{ intentId }` (was `{ result: { id, status } }`). The synthesised `status: "FAILED"` is gone — simulation failures now surface as 4xx with the unified error envelope. * **Field renames.** Notable: `destinationGasUnits` → `destinationGasLimit`, `sponsorSettings.{gas,bridgeFees,swapFees}Sponsored` → `{gas,bridgeFees,swapFees}`, `userAddress` → `accountAddress`. Portfolio token shape uses `symbol` (was `tokenName`), `chains` (was `tokenChainBalance`), and per-chain `address`/`decimals` (were `tokenAddress`/`tokenDecimals`). Timestamps move from `BigIntLike` strings to integer Unix seconds. * **Unified error envelope.** All non-2xx responses share `{ code, message, traceId, details? }`. Switch from message-pattern matching to `code`-based dispatch. * **Schema trimming.** `Account.mockSignature` is gone — use the per-chain `Account.mockSignatures` map. `AccountType.SMART_ACCOUNT` is gone — use `ERC7579`. The `accountAccessList` flat-array variant is gone — use the structured shape. * **Compact / resource locks removed.** No blanc equivalent for `topupCompact`, `emissaryConfig`, `MultichainCompact` origin signatures, or the `/withdrawals` endpoints. #### Migrating from `alps` **Quote and submit** ```ts theme={null} // Before (alps) — client round-trips the full intentOp const { intentOp } = await post("/intents/route", body); const signatures = await sign(intentOp); await post("/intent-operations", { signedIntentOp: { ...intentOp, ...signatures }, }); // After (blanc) — server stores the intent, client submits signatures by id const { routes } = await post("/quotes", body); const { intentId, signData } = routes[0]; const signatures = { origin: await Promise.all(signData.origin.map(signTypedData)), destination: await signTypedData(signData.destination), }; await post("/intents", { intentId, signatures }); ``` **Signing** ```ts theme={null} // Before (alps) — client hashes intent fields with hand-built EIP-712 types const hash = getIntentHash(intentOp); const sig = await signer.signTypedData(types, hash); // After (blanc) — server provides the typed data directly const sig = await signer.signTypedData(signData.origin[0]); ``` **Submit response** ```ts theme={null} // Before (alps) — wrapped, with synthesised status const { result } = await post("/intent-operations", body); const id = result.id; // result.status was "PENDING" or synthesised "FAILED" // After (blanc) — id only; simulation failures surface as 4xx const { intentId } = await post("/intents", body); ``` **Status polling** ```ts theme={null} // Before (alps) const op = await get(`/intent-operation/${id}`); const status = op.result.status; // After (blanc) const op = await get(`/intents/${intentId}`); const status = op.status; ``` The status enum is narrower in blanc — legacy values that no longer apply are removed. `PRECONFIRMED` is gone; if your client branches on it, drop that case. **Splits endpoint** `POST /intents/split` → `POST /intents/splits`. Request and response shapes follow the same blanc-wide rules (CAIP-2 chain ids, unified error envelope). **Chain ids** CAIP-2 strings (`eip155:`) replace numeric chain ids on every field that carries one — `chainId`, `sourceChainId`, `destinationChainId`, `chainIds`, `allChainIds`, and chain-keyed maps like `auxiliaryFunds`, `preClaimExecutions`, `chainTokens`, and `tokenRequirements`. Path parameters are unchanged. ```ts theme={null} // Before (alps) { "chainId": 42161 } { "tokenRequirements": { "1": [...], "42161": [...] } } // After (blanc) { "chainId": "eip155:42161" } { "tokenRequirements": { "eip155:1": [...], "eip155:42161": [...] } } ``` The portfolio filter switches from comma-separated lists to repeated query parameters, with `tokens` keyed as `chain:address`: ``` GET /accounts/0xabc/portfolio ?chainIds=eip155:1&chainIds=eip155:137 &tokens=eip155:1:0xa0b...&tokens=eip155:137:0xa0b... ``` **Reading costs** ```ts theme={null} // Before (alps) const gasUSD = response.feeBreakdownUSD.gas; const inputAmount = response.tokensSpent[0].amount; // After (blanc) const gasUSD = route.cost.fees.breakdown.gas.usd; const inputAmount = route.cost.input[0].amount; ``` **Field renames** | Before (alps) | After (blanc) | | - | - | | `userAddress` | `accountAddress` | | `destinationGasUnits` | `destinationGasLimit` | | `tokensSpent` | `cost.input` | | `tokensReceived` | `cost.output` | | `feeBreakdownUSD` | `cost.fees.breakdown` | | `tokenName` | `symbol` | | `tokenChainBalance` | `chains` | | `tokenAddress` | `address` | | `tokenDecimals` | `decimals` | Timestamps move from `BigIntLike` strings (`"1700000000"`) to integer Unix seconds (`1700000000`). **Sponsor settings** ```ts theme={null} // Before (alps) { sponsorSettings: { gasSponsored: true, bridgeFeesSponsored: false, swapFeesSponsored: false, } } // After (blanc) { sponsorSettings: { gas: true, bridgeFees: false, swapFees: false, } } ``` **Account types and mock signatures** `AccountType.SMART_ACCOUNT` is gone — use `ERC7579`. The flat `accountAccessList` array shape is gone — use the structured shape. Mock signatures move from a single `Account.mockSignature` to a per-chain `Account.mockSignatures` map. ```ts theme={null} // Before (alps) { account: { accountType: "SMART_ACCOUNT", mockSignature: "0x...", } } // After (blanc) { account: { accountType: "ERC7579", mockSignatures: { "eip155:1": "0x...", "eip155:42161": "0x...", }, } } ``` **Error handling** ```ts theme={null} // Before (alps) — message-pattern matching if (err.message === "Insufficient balance") { /* ... */ } if (err.message.startsWith("Unsupported chain ")) { /* ... */ } // After (blanc) — code-based dispatch switch (err.code) { case "INSUFFICIENT_LIQUIDITY": // err.details: { availableIntents, unfillable } break; case "VALIDATION_ERROR": // err.details: [{ message, context? }] break; } ``` Honour `Retry-After` on `429 TOO_MANY_REQUESTS`. #### Error codes | Code | HTTP | | - | - | | `VALIDATION_ERROR` | 400 | | `UNAUTHORIZED` | 401 | | `FORBIDDEN` | 403 | | `NOT_FOUND` | 404 | | `CONFLICT` | 409 | | `UNPROCESSABLE_CONTENT` | 422 | | `INSUFFICIENT_LIQUIDITY` | 422 | | `TOO_MANY_REQUESTS` | 429 | | `INTERNAL_ERROR` | 500 | | `SETTLEMENT_QUOTE_ERROR` | 502 | | `SETTLEMENT_EXECUTION_ERROR` | 502 | | `RELAYER_MARKET_UNAVAILABLE` | 503 | | `EXTERNAL_SERVICE_TIMEOUT` | 504 | The list is extensible — add unknown codes to a generic fallback path. #### Things you can't migrate The Compact / resource-lock surface has no blanc equivalent. If your integration depends on `topupCompact`, `emissaryConfig`, the `/withdrawals` endpoints, or `MultichainCompact` origin signatures, stay on `alps` until a replacement ships. ### `2026-01.alps` The original release. Intents are round-tripped through the client, signed via client-reconstructed EIP-712, and submitted with the full `intentOp` attached to `signedIntentOp`. The Compact / resource-lock surface (`topupCompact`, `emissaryConfig`, `/withdrawals`, `MultichainCompact` signatures) is only available on this version — stay on `alps` if you depend on it. > [!WARNING] > > Deprecated. Will be removed once existing integrations migrate to `blanc`. No new features will land on this version. # Add session details to account Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/add-session-details-to-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /account/{address}/session Add session details (chain IDs, session digests, and signature) to an existing account # Check account registration Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/check-account-registration https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /check/{address} Returns whether an account is registered and its target chain and token. # Prepare account registration Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/prepare-account-registration https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /setup-account Returns a deposit address or the details needed to register the account. Existing account ownership, kind, and destination are immutable; a conflicting request is refused before session details are created. # Provision a Solana token account Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/provision-a-solana-token-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /account/{address}/token-accounts Creates a token account for a registered account’s Solana deposit address, or returns the existing one. # Provision deposit addresses Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/provision-deposit-addresses https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /account/{address}/deposit-addresses Returns deposit addresses for a registered account, creating missing addresses as needed. It never changes the account owner or destination. # Register a managed account Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/register-a-managed-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /register-managed Registers a smart account controlled by the server. Reusing a salt is idempotent only for the registered project and destination; use a new salt to change destination. # Register an account Source: https://docs.rhinestone.dev/api-reference/deposit-service/accounts/register-an-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /register Registers a smart account for deposits. Registration is idempotent for the registered project and destination: an existing address cannot be reassigned to another project, account kind, chain, token, or recipient. To change destination, derive and register a new address. User-owned registration is limited to enabled organizations; others register managed accounts with `POST /register-managed`. # Create an analytics token Source: https://docs.rhinestone.dev/api-reference/deposit-service/analytics/create-an-analytics-token https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /analytics/ingest-token Creates a token for submitting analytics events, valid for five minutes. # Record analytics events Source: https://docs.rhinestone.dev/api-reference/deposit-service/analytics/record-analytics-events https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /analytics/events Stores a batch of browser analytics events. # Get client settings Source: https://docs.rhinestone.dev/api-reference/deposit-service/clients/get-client-settings https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /setup Returns the stored client configuration for the authenticated project. # Update client settings Source: https://docs.rhinestone.dev/api-reference/deposit-service/clients/update-client-settings https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /setup Updates client configuration for the authenticated project. Requires the deposits:admin API key scope. # Create or resume a compliance customer and mint a scoped session Source: https://docs.rhinestone.dev/api-reference/deposit-service/compliance/create-or-resume-a-compliance-customer-and-mint-a-scoped-session https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /compliance/sessions Called by the integrator backend. Creates or resumes the provider-neutral compliance customer for the given opaque external customer id, optionally binds a registered smart account, and returns a short-lived browser session bearer. The project API key must never be forwarded to the browser — hand the returned token to the modal instead. # Create or resume hosted verification for the session customer Source: https://docs.rhinestone.dev/api-reference/deposit-service/compliance/create-or-resume-hosted-verification-for-the-session-customer https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /compliance/verification Browser route. Starts or resumes the provider-hosted verification flow for the compliance customer named by the session bearer. A `pending` result with `nextAction` must be presented in an iframe; `pending` without it means the provider is reviewing and status updates arrive via webhook. The hosted URL is short-lived and is never stored — call again to mint a fresh one. # Read the canonical verification state for the session customer Source: https://docs.rhinestone.dev/api-reference/deposit-service/compliance/read-the-canonical-verification-state-for-the-session-customer https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /compliance/status Browser route. Returns the normalized verification state for the compliance customer named by the session bearer. Scoped to that one customer — a token can never read another customer, project, or bound account. # Get an offramp order Source: https://docs.rhinestone.dev/api-reference/deposit-service/offramp/get-an-offramp-order https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /offramp/orders/{id} By the order `id`. A customer bearer reads that customer's orders; an API key with `deposits:read`, the project's. # List offramp orders Source: https://docs.rhinestone.dev/api-reference/deposit-service/offramp/list-offramp-orders https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /offramp/orders Newest first by when each order was opened. A customer bearer lists that customer's orders; an API key with `deposits:read`, the project's. # List payout methods Source: https://docs.rhinestone.dev/api-reference/deposit-service/offramp/list-payout-methods https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /offramp/options The ways the customer can be paid out to a bank account. The provider decides them per customer. # Start a withdrawal to a bank account Source: https://docs.rhinestone.dev/api-reference/deposit-service/offramp/start-a-withdrawal-to-a-bank-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /offramp/orders Prepares the payout with the provider and opens it for one exact amount: the requested amount, or slightly less (one base unit at a time) when another open withdrawal holds it. Then send `order.payment` exactly. A source holding the token the provider takes, on its chain, pays the provider directly; any other source on a chain that takes deposits pays into the customer’s withdrawal account an amount quoted to deliver it (`SOURCE_NOT_SUPPORTED`, `NO_ROUTE` or `QUOTE_UNAVAILABLE` otherwise, holding nothing). Once the order exists, every error names it (`orderId`). # Get a funding account Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/get-a-funding-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/accounts/{id} # Get an onramp order Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/get-an-onramp-order https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/orders/{id} Accepts any id the caller holds: the order `id`, the provider’s order id (e.g. the `orderId` of the legacy `onramp-order` webhook), the `orderId` returned when the checkout was started (when retries share it, the newest order), or the `externalCustomerId` signed into the checkout (`:`). 404 until the provider first reports the order. A customer bearer reads that customer’s orders and every order on its bound account. # Get bank details for a funding account Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/get-bank-details-for-a-funding-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/accounts/{id}/details The coordinates to send the transfer to, captured when the account was configured. Served `Cache-Control: no-store`. # List funding accounts Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/list-funding-accounts https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/accounts # List onramp options Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/list-onramp-options https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/options What a checkout of this `kind` can offer: fiat payment methods for the caller’s country, or exchange connections. # List onramp orders Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/list-onramp-orders https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/orders Newest first by when each order began: the project’s with an API key; with a bearer, the customer’s and those on its bound account (card and exchange orders carry no customer). # List onramp providers Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/list-onramp-providers https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/providers The onramps provisioned for this organization, and the credential each takes. Ask `GET /onramp/options` what each one offers. # Set up a funding account Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/set-up-a-funding-account https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /onramp/accounts Configures a bank account whose transfers deliver to the customer’s bound smart account. Bank transfers into it appear as orders at `GET /onramp/orders`. # Start an onramp order Source: https://docs.rhinestone.dev/api-reference/deposit-service/onramp/start-an-onramp-order https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /onramp/orders Signs a hosted checkout for the account. The order is visible at `GET /onramp/orders/{orderId}` once the provider first reports it. # Get a deposit quote Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/get-a-deposit-quote https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /quotes/preview Estimates fees, output, and completion time for a deposit. # Prepare a gasless deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/prepare-a-gasless-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /deposits/permit/prepare Prepares a token authorization for the user to sign. Experimental. # Recover a deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/recover-a-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /deposits/recover Returns funds from a failed or rejected deposit. # Refund a deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/refund-a-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /deposits/{id}/refund Returns deposit funds to a specified address on the source chain. # Relay a Polymarket withdrawal Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/relay-a-polymarket-withdrawal https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /polymarket/withdraw Submits a signed withdrawal from a Polymarket deposit wallet. # Relay a Safe withdrawal Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/relay-a-safe-withdrawal https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /safe/withdraw Submits a signed Safe withdrawal with sponsored gas. # Retry a deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/retry-a-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /deposits/{id}/retry Retries a failed or rejected deposit. # Submit a gasless deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/processing/submit-a-gasless-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /deposits/permit Starts a deposit using a signed token authorization. Experimental. # Check route liquidity Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/check-route-liquidity https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /liquidity Checks whether a route can fulfil the requested amount. # Get a deposit Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-a-deposit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /deposits/{id} Returns a deposit for the authenticated project. # Get a Solana wallet portfolio Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-a-solana-wallet-portfolio https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /portfolio/solana/{address} Returns the Solana wallet's balances this project can take as a deposit: nothing while Solana is not accepting deposits and, when the project has a deposit whitelist, only whitelisted tokens (native SOL under the system-program id). `totalUsd` sums the returned tokens. # Get a wallet portfolio Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-a-wallet-portfolio https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /portfolio/{address} Returns the wallet's balances this project can take as a deposit: tokens on chains currently accepting deposits and, when the project has a deposit whitelist, only whitelisted tokens. `totalUsd` sums the returned tokens. # Get asset metadata Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-asset-metadata https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /assets Authenticated asset lookup. GET accepts required ids and fields as comma-separated or repeated query parameters; at most 100 IDs before deduplication. Supported fields: name, symbol, decimals, price, logo. QUERY /assets is also supported (not representable as an OpenAPI 3.1 operation): send application/json {"ids":["eip155:1:native"],"fields":["symbol","price"]}, at most 100 IDs and a 64 KiB body. Both methods return exact submitted ID keys, omit unrequested fields and use null for unresolved requested fields; item errors remain HTTP 200. An invalid request returns 400 with {"error":{"code":"invalid_request","message":"..."}}. # Get deposit statistics Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-deposit-statistics https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /deposits/stats Returns completed deposit counts, unique depositors, and USD volume for the requested period. # Get token prices Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/get-token-prices https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /prices Returns token prices in USD by symbol. # List deposit quotes Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/list-deposit-quotes https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /deposits/{id}/quotes Returns quotes considered for a deposit and their outcomes. # List deposits Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/list-deposits https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /deposits Returns deposits for the authenticated project, newest first. Filters narrow the list on the server before pagination: different parameters combine with AND, values within one parameter with OR, and an exclusion (`excludeStatus`, `excludeChain`, `excludeAsset`, `excludeSender`) wins over a matching inclusion. # List suggested deposit tokens Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/list-suggested-deposit-tokens https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /qr/tokens Returns suggested tokens for QR and manual-transfer deposits. # List supported chains and tokens Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/list-supported-chains-and-tokens https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /chains Returns supported chains and tokens with their deposit and destination availability. # List withdrawable positions Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/list-withdrawable-positions https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /positions/{address} Returns DeFi positions and the amounts currently available to withdraw. # Prepare an Aave withdrawal Source: https://docs.rhinestone.dev/api-reference/deposit-service/utilities/prepare-an-aave-withdrawal https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /positions/{address}/unwind Prepares an unsigned transaction to withdraw an Aave position to a deposit address. # List webhook events Source: https://docs.rhinestone.dev/api-reference/deposit-service/webhooks/list-webhook-events https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /webhooks/events Returns webhook events for the authenticated project, newest first. # Resend a webhook Source: https://docs.rhinestone.dev/api-reference/deposit-service/webhooks/resend-a-webhook https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /webhooks/events/{id}/resend Resends a webhook event to the configured URL. # Send a test webhook Source: https://docs.rhinestone.dev/api-reference/deposit-service/webhooks/send-a-test-webhook https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /webhooks/test Sends a webhook with test data to the configured URL. # Introduction Source: https://docs.rhinestone.dev/api-reference/introduction Reference for the Rhinestone REST APIs. The Rhinestone platform exposes two REST APIs: * **Orchestrator** — quote, submit, and track cross-chain intents. Backs the core intent flow. * **Deposit Service** — register accounts and process cross-chain deposits with automatic bridging and gas sponsorship. Both share the same base host, `https://v1.orchestrator.rhinestone.dev`, with the Deposit Service mounted at `/deposit-processor`. The Orchestrator HTTP guides and endpoint reference use `x-api-version: 2026-09.caucasus` on every request. See [versioning and migration](/api-reference/api-versioning) for the contract; changing the header alone does not migrate a Blanc integration. For an existing Blanc integration, use the published [`2026-04.blanc` OpenAPI document](https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/blanc.json). This version header does not select the Deposit Service contract. ## Authentication All endpoints require an API key sent in the `x-api-key` header. The orchestrator additionally supports short-lived JWTs as an alternative for integrators that need bounded credentials or per-request sponsorship policies. * [Get an API key](https://tally.so/r/wg22x4) * [Dashboard and authentication](/home/resources/dashboard) ## Errors Errors are returned with standard HTTP status codes and a JSON body. The [end-to-end transaction flow](/transactions/multichain/end-to-end-transaction-flow) covers recovery in context. ## Guides If you're integrating from scratch, start with the workflow guides — they show how the endpoints fit together end-to-end. > [card] [Transaction flow](/transactions/multichain/end-to-end-transaction-flow) > > Build the full intent flow: quote, sign, submit, track. > [card] [Deposits quickstart](/deposits/headless/quickstart) > > Register accounts and accept cross-chain deposits. # Create App-Fee Withdrawal Source: https://docs.rhinestone.dev/api-reference/orchestrator/app-fees/create-app-fee-withdrawal https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json post /app-fees/withdrawals Withdraw the authenticated project's full app-fee balance to a whitelisted stablecoin on the chosen chain, paid to the project's registered payout address. # Get App-Fee Balances Source: https://docs.rhinestone.dev/api-reference/orchestrator/app-fees/get-app-fee-balances https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /app-fees/balances The authenticated project's app-fee balance as USD totals valued at collection time. `pendingUsd` is the payout value permanently reserved by signed withdrawals whose target-chain FILL has not completed, including failed or expired payouts. `unavailableUsd` is earned fees that cannot be withdrawn yet because payouts are not enabled for the chain they were collected on, net of the current cut like `withdrawableUsd`. # Get App-Fee Withdrawal Source: https://docs.rhinestone.dev/api-reference/orchestrator/app-fees/get-app-fee-withdrawal https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /app-fees/withdrawals/{nonce} A single app-fee withdrawal owned by the authenticated project, with its status and USD value paid out. # Get App-Fee Withdrawal Targets Source: https://docs.rhinestone.dev/api-reference/orchestrator/app-fees/get-app-fee-withdrawal-targets https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /app-fees/withdrawal-targets Get the enabled EVM chains and whitelisted stablecoins currently accepted for app-fee withdrawals. # List App-Fee Withdrawals Source: https://docs.rhinestone.dev/api-reference/orchestrator/app-fees/list-app-fee-withdrawals https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /app-fees/withdrawals The authenticated project's app-fee withdrawals (newest first) with each withdrawal's status and USD value paid out. # Create Intent Source: https://docs.rhinestone.dev/api-reference/orchestrator/intents/create-intent https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json post /intents Submits a quoted intent for execution. Takes the `intentId` from `POST /quotes` (`routes[].intentId`) plus one ordered `proofs[]` answering the quote's `signingRequests[]` position by position. # Get Intent Source: https://docs.rhinestone.dev/api-reference/orchestrator/intents/get-intent https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /intents/{id} Retrieves the status of an intent along with per-claim progress across chains. # List Intents Source: https://docs.rhinestone.dev/api-reference/orchestrator/intents/list-intents https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /intents Retrieves a paginated list of the authenticated client's intents, newest first. # Split Intent by Liquidity Source: https://docs.rhinestone.dev/api-reference/orchestrator/intents/split-intent-by-liquidity https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json post /intents/splits Splits token amounts into multiple intents based on available relayer liquidity. Each returned intent can be filled by a single relayer. # Create Indicative Quote Source: https://docs.rhinestone.dev/api-reference/orchestrator/quotes/create-indicative-quote https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json post /quotes/estimate Computes an indicative (non-binding) quote: ranked route estimates with per-route cost breakdown and fill time. Unlike `POST /quotes`, it returns no `intentId`, `signingRequests`, or `expiresAt` — it cannot be submitted to `POST /intents`. Use it for pre-quote UX (price previews, route discovery) without persisting an intent. # Create Quote Source: https://docs.rhinestone.dev/api-reference/orchestrator/quotes/create-quote https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json post /quotes Computes a quote for an intent: token transfers, target executions, and cost breakdown. Returns a pre-ranked `routes[]` with per-route `intentId` to pass to `POST /intents` for execution. # Get Account Portfolio Source: https://docs.rhinestone.dev/api-reference/orchestrator/utilities/get-account-portfolio https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /accounts/{accountAddress}/portfolio Retrieves the token balances across all supported chains for a user's abstracted account # Route liquidity limit Source: https://docs.rhinestone.dev/api-reference/orchestrator/utilities/route-liquidity-limit https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /liquidity Returns the largest known fillable amount for a single deposit on the given source→destination route. Relayer-market layers return exact capacity; bridge-backed layers return a conservative probed lower bound. # Supported chains and tokens Source: https://docs.rhinestone.dev/api-reference/orchestrator/utilities/supported-chains-and-tokens https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/orchestrator/caucasus.json get /chains Get supported chains and tokens with additional metadata # Asset migrations Source: https://docs.rhinestone.dev/deposits/crypto/asset-migrations Fund a deposit from balances the user already holds in another app. The deposit widget can pull balances a user already holds in a supported third-party app and fund the deposit from there — no manual transfer first. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup) first. Each provider is **off by default**; opt in per provider via `assetMigrations`. ```tsx theme={null} ``` When at least one provider is enabled, a **Migrate assets** row appears on the deposit entry screen and opens a picker over that provider's positions. The user picks one, and the modal pulls the funds into their smart account and bridges them to `targetChain` / `targetToken` like any other source. | Key | Status | | - | - | | `polymarket` | Live | | `aave` | Live | | `hyperliquid` | Coming soon | | `morpho` | Coming soon | Only the providers you enable are listed. Enabling one that isn't live yet shows it as a disabled "Coming soon" row rather than hiding it. ## Polymarket Set `assetMigrations={{ polymarket: true }}`. The modal looks up the connected EOA's Polymarket proxy wallet on Polygon and surfaces any pUSD or USDC.e balance. pUSD is unwrapped to USDC.e on the way out; USDC.e is what lands in the smart account and what the orchestrator bridges from. Polymarket exposes two wallet types and the modal handles both: some transfer on-chain directly from the user's signed transaction, while others are relayed through your [backend proxy](/deposits/overview/widget/backend-setup), which must forward `POST /polymarket/withdraw`. ### Open directly into Polymarket To skip the deposit-method home screen and land the user straight on the Polymarket transfer, pass `initialAssetMigration="polymarket"` alongside `assetMigrations={{ polymarket: true }}`. While balances load the modal shows a skeleton; if there's no account, no balance, or no connected wallet it falls back to the home screen. ```tsx theme={null} ``` ### Headless account lookup If you build your own UI and only need the data, the `@rhinestone/deposit-modal/polymarket` subpath exports a headless `getPolymarketAccount` — no React, modal, or wallet-connect code pulled into your bundle. Give it the connected EOA and it returns the user's Polymarket proxy wallet address and on-chain pUSD / USDC.e balances on Polygon. ```ts theme={null} import { getPolymarketAccount } from "@rhinestone/deposit-modal/polymarket"; const account = await getPolymarketAccount({ eoa: connectedAddress }); if (account) { account.proxyWallet; // the user's Polymarket address on Polygon account.pusd.formatted; // pUSD balance, e.g. "12.5" account.usdce.formatted; // USDC.e balance account.totalUsd; // combined USD value } ``` Returns `null` only when the EOA has no Polymarket account. A transient failure (network, 5xx, abort) rejects instead, so an outage is never mistaken for "no account". Pass `rpcUrl` to override the default public Polygon RPC, or a `signal` (`AbortSignal`) to cancel the lookup. ## Aave Set `assetMigrations={{ aave: true }}`. The modal lists the connected EOA's Aave v3 supply positions across every chain you can take deposits from, and picking one produces a single `Pool.withdraw` that sends the proceeds **straight to the user's deposit address** — the funds never pass through their wallet, and the normal deposit pipeline ingests them like any other incoming transfer. Requires your [backend proxy](/deposits/overview/widget/backend-setup) to forward `GET /positions/:address` and `POST /positions/:address/unwind`. A read-scoped API key is enough for both. Three behaviours worth knowing, because they are deliberate: * **The amount offered is what can actually be withdrawn right now**, not the full supplied balance. Aave caps a withdrawal against the user's health factor, E-Mode thresholds, paused reserves and pool liquidity, so a position worth $100 may only permit $40 out. The modal offers the \$40 — the user is never shown a figure the pool would reject. * **The user's wallet signs; Rhinestone never holds a key on this path.** The aTokens sit in the user's own EOA, so only they can authorise the withdraw. The transaction we build is unsigned and inert until they sign it. * **A position whose proceeds your config would refuse is not offered at all** — under your `minDepositUsd`, or outside your source-token allowlist. Offering it and failing afterwards would leave the user having irreversibly exited a position for funds we then reject. Positions are keyed by **market**, not chain: Ethereum alone hosts four Aave v3 markets with distinct pools and risk parameters, so the same token supplied to two of them appears as two rows, each naming its market. If a market can't be read, the positions that did load are still listed and the screen says the list may be incomplete — an outage never silently reports a smaller balance than the user holds. ### Open directly into Aave As with Polymarket, `initialAssetMigration="aave"` skips the home screen: ```tsx theme={null} ``` ## Track the deposit Use [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling) while the widget is open and [webhooks](/deposits/headless/processing-and-tracking/webhooks) for backend completion. See [widget configuration](/deposits/overview/widget/widget-configuration) for the shared destination, routing, and props. # Deposit addresses and QR codes Source: https://docs.rhinestone.dev/deposits/crypto/deposit-addresses-and-qr-codes Accept crypto transfers without connecting the sending wallet to your app. The Transfer crypto flow shows a deposit address and QR code that the user can pay from any wallet, app, or exchange. It needs no wallet connection in your widget. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup) first. ## Enable transfer funding `enableQrTransfer` defaults to `true`. Supply neither `walletClient` nor `reownAppId` to open without a wallet connection: ```tsx theme={null} import { DepositModal } from "@rhinestone/deposit-modal"; import "@rhinestone/deposit-modal/styles.css"; setIsOpen(false)} targetChain={8453} targetToken="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" recipient="0xYOUR_RECIPIENT_ADDRESS" backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL} enableQrTransfer onLifecycle={(event) => event.type === "complete" && console.log(event)} /> ``` The widget opens into the enabled funding methods. If Transfer crypto is the only enabled method, there is no chooser and it opens directly into the transfer flow. ```tsx theme={null} ``` The deposit account is service-managed and derived from `recipient`, `targetChain`, and `targetToken`. It does not depend on the wallet or exchange that sends the funds. Changing the target changes the deposit address. The source picker is governed by your project's deposit whitelist. Configure accepted chains and tokens in the project setup rather than filtering the widget; see [widget configuration](/deposits/overview/widget/widget-configuration#restrict-accepted-sources). HyperCore can also be a transfer source. The widget uses the account's EVM address as the deposit address, and a native Hyperliquid L1 spot transfer lands there. ## Manual exchange withdrawals For an exchange not handled by Connect exchange, the user can withdraw manually to the address shown here. Keep that instruction in this transfer flow: the widget is tracking an incoming crypto transfer, not a provider order. ## Track the deposit QR and manual transfers have no amount input and do not emit a wallet `"connected"` event. Use [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling) while the widget is open and [webhooks](/deposits/headless/processing-and-tracking/webhooks) for backend completion. # Deposit from a wallet Source: https://docs.rhinestone.dev/deposits/crypto/deposit-from-a-wallet Connect a wallet inside the deposit widget or reuse a wallet your app already connected. The connected-wallet flow lets users select a source chain and token, enter an amount, and submit the deposit. The wallet is only the payment source: the service-managed deposit account is derived from your configured recipient, target chain, and target token. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup) first. ## Let the widget connect a wallet The user connects their own wallet through Reown (WalletConnect). The widget manages the connection UI internally. Use this when your app has no wallet infrastructure of its own. ```tsx theme={null} import { DepositModal } from "@rhinestone/deposit-modal"; import "@rhinestone/deposit-modal/styles.css"; setIsOpen(false)} targetChain={8453} targetToken="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" recipient="0xYOUR_RECIPIENT_ADDRESS" backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL} reownAppId="YOUR_REOWN_PROJECT_ID" onLifecycle={(event) => event.type === "complete" && console.log(event)} /> ``` The widget-managed path requires the Reown and Solana peer dependencies listed in the [quickstart](/deposits/overview/widget/quickstart). To disconnect a wallet the widget connected, call the exported `disconnectWallet()`. It no-ops with a warning if `@reown/appkit` is not installed. ## Supply your app's wallet If your app already connected a wallet through Privy, Dynamic, Turnkey, wagmi, or another integration, pass its viem `walletClient`. The widget reuses that session instead of opening its own connect step. The widget reads the address from `walletClient.account`, so its connected identity cannot disagree with your app. ```tsx theme={null} import { DepositModal } from "@rhinestone/deposit-modal"; import "@rhinestone/deposit-modal/styles.css"; setIsOpen(false)} targetChain={8453} targetToken="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" recipient="0xYOUR_RECIPIENT_ADDRESS" backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL} walletClient={walletClient} publicClient={publicClient} onLifecycle={(event) => event.type === "complete" && console.log(event)} /> ``` Pass `onRequestConnect` as well if your app needs to run a login flow when the user selects the wallet row before one is connected. > [!TIP] > > `walletClient={undefined}` is not the same as omitting the prop. Passing it while your wallet connects tells the widget that a wallet is coming, so it waits instead of deciding there is none. Set `enableWallet={false}` to hide wallet funding even when you provide `walletClient` or `reownAppId`. ## Deposit without connecting a wallet A wallet is optional. To accept a manual transfer from any wallet or exchange, show a deposit address instead; see [deposit addresses and QR codes](/deposits/crypto/deposit-addresses-and-qr-codes). ## Track the deposit Use [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling) while the widget is open and [webhooks](/deposits/headless/processing-and-tracking/webhooks) for backend completion. See [widget configuration](/deposits/overview/widget/widget-configuration) for destination, routing, and the full props reference. # Crypto deposits Source: https://docs.rhinestone.dev/deposits/crypto/overview Accept crypto from a connected wallet, a deposit address, or balances held in another app. The deposit widget can fund a service-managed deposit account from a connected wallet, a copied address or QR code, or supported third-party positions. Rhinestone then routes the funds to your configured destination. ## Choose a flow > [card] [Deposit from a wallet](/deposits/crypto/deposit-from-a-wallet) > > Let the widget connect a wallet or reuse the wallet your app already connected. > [card] [Deposit addresses and QR codes](/deposits/crypto/deposit-addresses-and-qr-codes) > > Accept transfers from another wallet, app, or exchange without connecting it. > [card] [Asset migrations](/deposits/crypto/asset-migrations) > > Fund from supported balances and DeFi positions held in another app. > [card] [Withdraw funds](/deposits/crypto/withdraw-funds) > > Let users withdraw from an account to a supported chain and token. ## Start here Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup), then choose a flow above. Use the shared guides for [widget configuration](/deposits/overview/widget/widget-configuration), [theming](/deposits/overview/widget/theming-and-customization), [mobile apps](/deposits/overview/widget/mobile-apps), [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling), [analytics](/deposits/overview/widget/analytics), [history and recovery](/deposits/overview/widget/history-and-recovery), and [migration](/deposits/overview/widget/migration-guide). Use [webhooks](/deposits/headless/processing-and-tracking/webhooks) for completion handling that must not depend on the widget remaining open. # Withdraw funds Source: https://docs.rhinestone.dev/deposits/crypto/withdraw-funds Let users withdraw tokens from any account to any supported chain with the widget. The `WithdrawModal` handles outbound transfers in the crypto product. The user selects a destination chain and token, enters a recipient and an amount, and the modal registers the account that routes the funds — then asks your app to perform one transfer. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup) first. The modal never holds a key and never moves funds itself, so it works with any account model: an EOA, a smart account, an embedded or in-app wallet, or a relayer. ## Basic usage ```tsx theme={null} import { WithdrawModal } from "@rhinestone/deposit-modal/withdraw"; import "@rhinestone/deposit-modal/styles.css"; setIsOpen(false)} accountAddress="0xACCOUNT_HOLDING_THE_FUNDS" backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL} sourceChain={8453} sourceToken="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" targetChain={10} targetToken="0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85" onSendTransaction={async ({ chainId, token, amount, to }) => ({ txHash: await myWallet.sendTransfer({ chainId, token, amount, to }), })} onLifecycle={(event) => { if (event.type === "complete") { console.log("Withdrawal complete:", event.destinationTxHash); } }} /> ``` `accountAddress` is the account holding the funds. The modal reads its balance and stops the user sending to themselves; it never transacts from it. ## Executing the transfer `onSendTransaction` is required. The modal calls it once, when the user confirms on the review screen, with everything needed for a single transfer: ```ts theme={null} onSendTransaction: (request: WithdrawTransferRequest) => Promise<{ txHash: Hex }> interface WithdrawTransferRequest { chainId: number; // source chain to send from token: Address; // source token; NATIVE_TOKEN_ADDRESS for the native asset amount: bigint; // in the token's base units to: Address; // send here } ``` Two rules, both silent-failure modes if missed: > [!WARNING] > > **Send to `to`, and nothing else.** It is the Rhinestone account that receives the funds and bridges them on to the recipient — except on a same-route withdrawal (source chain and token identical to the target), where the modal skips the bridge and `to` is the recipient directly. Substituting an address of your own either bypasses the bridge or strands the funds. > > **Return the on-chain transaction hash.** Progress is tracked by looking the deposit up by that hash. An ERC-4337 wallet must await the receipt and return the bundled transaction hash, **not** the userOp hash — returning the wrong one leaves the modal waiting on a withdrawal that already succeeded. Reject the promise to surface a failure in the modal. The user can retry from the review screen. ### If your funds are in a Safe A 1/1 Safe signs with `personal_sign` over the `SafeTx` hash, relayed by whoever pays the gas. Build the EIP-712 `SafeTx`, sign it, and submit `execTransaction`: ```tsx theme={null} onSendTransaction={async ({ chainId, token, amount, to }) => { const safeTx = await buildSafeTransaction({ chainId, token, amount, to }); const signature = await provider.request({ method: "personal_sign", params: [safeTx.safeTxHash, ownerAddress], }); // Adjust v for Safe's eth_sign verification const v = parseInt(signature.slice(-2), 16); const adjusted = signature.slice(0, -2) + (v + 4).toString(16); const { txHash } = await relaySafeTransaction(safeTx, adjusted); return { txHash }; }} ``` > [!NOTE] > > Safe's `eth_sign` path requires adding 4 to the `v` value of a `personal_sign` signature. This adjustment is specific to Safe's signature verification — see the [Safe docs](https://docs.safe.global/advanced/smart-account-signatures#eth_sign-signature) for details. To keep gas sponsored, relay the signed transaction through `POST /safe/withdraw` on your proxy rather than submitting `execTransaction` from the user's wallet. Note that a relayed transaction cannot use Safe's pre-validated (`v = 1`) signature shortcut: that only validates when `msg.sender` is the owner, and for a relayed call the sender is the relayer. ## History and recovery Available from v0.15.0, history follows the currently valid withdrawal destination, not `accountAddress`. Changing the destination re-scopes the list and status badge; an invalid or absent destination has no history entry point. The entry point appears before a transaction and on terminal screens, but not while signing, submitting, polling, or inside an external provider. Pass `signRecovery` only when your app can sign for destinations the user selects. Without it, history remains available but read-only, transaction-hash fallback is hidden, and the badge does not promise recovery. See [history and recovery](/deposits/overview/widget/history-and-recovery) for the shared signing, eligibility, fallback, and analytics contract. ## Props reference ### Required | Prop | Type | Description | | - | - | - | | `isOpen` | `boolean` | Controls modal visibility | | `onClose` | `() => void` | Called when the user closes the modal | | `accountAddress` | `Address` | Account holding the funds being withdrawn | | `sourceChain` | `Chain \| number` | Chain where the account holds funds | | `sourceToken` | `Address` | Token to withdraw | | `onSendTransaction` | `(request: WithdrawTransferRequest) => Promise<{ txHash: Hex }>` | Performs the transfer and returns its on-chain hash | | `backendUrl` | `string` | Your [backend proxy](/deposits/overview/widget/backend-setup), which holds your API key | ### Transfer | Prop | Type | Default | Description | | - | - | - | - | | `targetChain` | `Chain \| number` | `sourceChain` | Seeds the destination chain; the user can change it | | `targetToken` | `Address` | `sourceToken` | Seeds the token to receive; the user can change it | | `recipient` | `Address` | — | Pre-fills the delivery address; the user can edit it | | `defaultAmount` | `string` | — | Pre-filled withdrawal amount | > [!NOTE] > > `targetChain` and `targetToken` are optional — they seed the form, and the user can > pick any supported destination. Omit them to open on a same-chain, same-token > withdrawal. ### Account | Prop | Type | Default | Description | | - | - | - | - | | `forceRegister` | `boolean` | `false` | Re-register even if the account already exists | ### Backend | Prop | Type | Default | Description | | - | - | - | - | | `rpcUrls` | `RpcUrlMap` | Chain defaults | Per-chain RPC overrides keyed by EVM chain id. Used for balance reads; chains left unset use their default RPC | ### Display | Prop | Type | Default | Description | | - | - | - | - | | `inline` | `boolean` | `false` | Render without modal overlay | | `closeOnOverlayClick` | `boolean` | `false` | Close modal on backdrop click | | `className` | `string` | — | CSS class for the modal container | | `theme` | `DepositModalTheme` | — | [Theme configuration](/deposits/overview/widget/theming-and-customization#theme) | | `uiConfig` | `DepositModalUIConfig` | — | [UI configuration](/deposits/overview/widget/theming-and-customization#ui-configuration) | | `debug` | `boolean` | `false` | Enable debug logging | ### Recovery | Prop | Type | Default | Description | | - | - | - | - | | `signRecovery` | `SignRecovery` | — | Optionally enables [signed recovery from destination-scoped history](/deposits/overview/widget/history-and-recovery#signing-contract). Omit it for read-only history | ### Callbacks | Prop | Type | Description | | - | - | - | | `onReady` | `() => void` | Modal initialized | | `onLifecycle` | `(event: WithdrawLifecycleEvent) => void` | [Lifecycle event](/deposits/overview/widget/callbacks-and-error-handling#onlifecycle) — switch on `event.type` (`connected`, `submitted`, `complete`, `failed`) | | `onError` | `(data: ErrorEventData) => void` | Error at any stage | | `onEvent` | `(event: WithdrawAnalyticsEvent \| ClaimAnalyticsEvent \| AnalyticsIngestFailureEvent) => void` | [Withdraw or history-originated claim analytics](/deposits/overview/widget/analytics#history-analytics), or an [ingest failure](/deposits/overview/widget/analytics#ingest-failures) | Withdraw sessions send analytics to Rhinestone from the browser too, so the same [content security policy](/deposits/overview/widget/widget-configuration#content-security-policy) applies. `WithdrawLifecycleEvent` has no `balance-changed` or `smart-account-changed` variants, and its payload types differ from the deposit union: `txHash` is `Hex`, `sourceChain` is always a `number`, `sourceToken` / `targetToken` are `Address`, and `"submitted"` carries an `accountAddress`. ### Analytics | Prop | Type | Default | Description | | - | - | - | - | | `enableAnalyticsIngest` | `boolean` | `true` | Sends withdraw session analytics to Rhinestone in addition to `onEvent`. `false` turns collection off entirely; `onEvent` is unchanged either way | # Connect an exchange Source: https://docs.rhinestone.dev/deposits/exchanges/connect-an-exchange Enable centralized exchange funding in the deposit widget. Enable Connect exchange when users should fund from a supported centralized exchange inside the widget. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart) and [backend setup](/deposits/overview/widget/backend-setup) first; your proxy must forward the [`/onramp/*` routes](/deposits/overview/widget/backend-setup#required-routes). ## Enable exchange funding ```tsx theme={null} import { DepositModal } from "@rhinestone/deposit-modal"; import "@rhinestone/deposit-modal/styles.css"; setIsOpen(false)} targetChain={8453} targetToken="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" recipient="0xYOUR_RECIPIENT_ADDRESS" backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL} enableExchangeConnect onLifecycle={(event) => event.type === "complete" && console.log(event)} /> ``` `enableExchangeConnect` adds the Connect exchange funding row. The user picks an exchange inside Swapped's iframe and chooses the amount there. The flow needs no connected wallet. When this is the only funding path you want to show, disable the default wallet and transfer rows: ```tsx theme={null} ``` The backend provides the supported exchange list and mints the signed Connect URL. If the exchange is not available in Connect, use the crypto [deposit address and QR code](/deposits/crypto/deposit-addresses-and-qr-codes) flow for a manual withdrawal instead. ## Mobile apps The native wrappers need an `openUrl` handler before they offer the exchange row. Present the provider in an in-app browser rather than a bare WebView; see [mobile apps](/deposits/overview/widget/mobile-apps). ## Track completion Use [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling) for the open widget and [webhooks](/deposits/headless/processing-and-tracking/webhooks) for backend fulfillment. A completed provider order means Swapped sent the crypto onchain. It does not prove that Rhinestone delivered the funds to your configured destination. Track both stages through [onramp and exchange orders](/deposits/headless/processing-and-tracking/track-onramp-and-exchange-orders). The shared guide covers the same-chain case where no bridge event follows. Use [widget configuration](/deposits/overview/widget/widget-configuration), [theming](/deposits/overview/widget/theming-and-customization), and [analytics](/deposits/overview/widget/analytics) for the remaining integration options. # Exchange deposits Source: https://docs.rhinestone.dev/deposits/exchanges/overview Let users fund your app from a centralized exchange through the deposit widget. Connect exchange lets a user select a supported centralized exchange in Swapped's widget and withdraw from their exchange balance into the Rhinestone deposit flow. No wallet connection is required. ## Start here 1. Complete the shared [widget quickstart](/deposits/overview/widget/quickstart). 2. Deploy the required [backend proxy](/deposits/overview/widget/backend-setup). Exchange connect requires the [`/onramp/*` routes](/deposits/overview/widget/backend-setup#required-routes) on your backend. 3. [Connect an exchange](/deposits/exchanges/connect-an-exchange). Use the shared guides for [widget configuration](/deposits/overview/widget/widget-configuration), [theming](/deposits/overview/widget/theming-and-customization), [mobile apps](/deposits/overview/widget/mobile-apps), [callbacks and error handling](/deposits/overview/widget/callbacks-and-error-handling), [analytics](/deposits/overview/widget/analytics), [history and recovery](/deposits/overview/widget/history-and-recovery), and [migration](/deposits/overview/widget/migration-guide). For an exchange outside the Connect flow, direct the user to the crypto [deposit address and QR code](/deposits/crypto/deposit-addresses-and-qr-codes) guide. Manual exchange withdrawal is an incoming crypto transfer, not a Connect exchange order. Track backend completion with [webhooks](/deposits/headless/processing-and-tracking/webhooks). Provider order status is not proof that funds settled at your configured destination; follow [onramp and exchange order tracking](/deposits/headless/processing-and-tracking/track-onramp-and-exchange-orders), including the same-chain exception. # Fee breakdown Source: https://docs.rhinestone.dev/deposits/headless/fees/fee-breakdown Understand the fee structure for deposits. Every deposit processed through the Deposit API may incur fees depending on the source chain, target chain, and tokens involved. Your organization pays gas, bridging, and protocol fees; swap and app fees are deducted from the deposit amount. ## Fee types | Fee | Applies when | Covers | | - | - | - | | **Gas** | Always | On-chain execution costs on source and target chains | | **Bridging** | Source and target chain differ | Settlement layer fee (Across, Relay, etc.) | | **Swap** | Source and target token differ | DEX execution fee for token conversion | | **Protocol** | Always | Rhinestone's deposit fee, always paid by your organization | | **App** | You configure a rate and collection is supported and enabled | Your own fee, earned by your project after verified delivery | A single deposit can incur multiple fee types. For example, depositing ETH on Arbitrum to receive USDC on Base incurs all three of the Rhinestone fees: gas for on-chain execution, a bridging fee for the cross-chain settlement, and a swap fee for the ETH → USDC conversion. Same-chain deposits skip the bridging fee, and same-token deposits skip the swap fee. The app fee is different in kind: it's a fee you charge, not a cost of executing the deposit, and nothing is charged unless you configure a rate. ## How fees are applied Fees your organization pays are billed to you monthly. Fees the user pays are subtracted from the deposit amount during processing, and the user receives the remainder on the target chain. For example, if a user deposits 100 USDC and the swap fee is 0.50 USDC, the user receives 99.50 USDC on the target chain. Enterprise plans can sponsor swaps, or pass gas and bridging to the user; see [sponsorship](/deposits/headless/fees/sponsorship). ## Solana deposit app fees Solana app-fee collection supports deposits of the following mainnet assets to EVM destinations. Collection is off by default and requires activation by Rhinestone, separately from [fee configuration](/deposits/headless/setup/project-configuration#configure-app-fees). | Asset | Mint or native asset identifier | | - | - | | USDC | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | | USDT | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` | | SOL (native) | `11111111111111111111111111111111` | | cbBTC | `cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij` | | PYUSD | `2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo` | | USDe | `DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT` | | EURC | `HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr` | SOL app fees are charged in native SOL. Its identifier is not an SPL mint and does not refer to wrapped SOL; the other assets use SPL mints. PYUSD uses Token-2022. Routes are refused if its issuer enables a non-zero transfer fee. The rate is fixed when a deposit is first detected and survives configuration changes and retries. Deposits detected before activation keep zero fees. Exact-out previews price the fee on the requested delivery, but execution charges it against the source amount. Depositing the quoted input can therefore deliver slightly less than requested. Eligible Solana earnings can be [withdrawn on EVM](/transactions/monetization/monetize-the-flow#withdraw-revenue). If delivery fails permanently after fee collection, contact Rhinestone for a manual app-fee refund; refunds are not automatic. ## Learn more * [Sponsorship](/deposits/headless/fees/sponsorship) — cover fees on behalf of your users * [Project configuration](/deposits/headless/setup/project-configuration) — configure app fees, deposit whitelists, and price deviation tolerance * [Dashboard](/home/resources/dashboard) — manage app fees and payouts # Sponsorship Source: https://docs.rhinestone.dev/deposits/headless/fees/sponsorship Sponsor deposit fees on behalf of your users. Your organization pays gas, bridging, and protocol fees on every deposit, on every chain, so your users receive the full deposited amount on the target chain. The swap fee is paid by the user. The Deposit API needs billing on every chain, testnets included: a card on your organization in the [dashboard](/home/resources/dashboard), or an approved contract. Without one, every call is refused with a `403`. ## Plan options Enterprise plans can change who pays with `POST /setup`, per source chain: | Fee | Values | Available with | Description | | - | - | - | - | | **Gas** | `"all"`, `"deployed"`, `"none"` | Passing fees to users | `"all"` sponsors gas for every deposit. `"deployed"` only sponsors gas when the account is already deployed on the source chain — useful to avoid covering first-time deployment costs. | | **Bridging** | `"all"`, `"none"` | Passing fees to users | Covers the settlement layer bridging fee. | | **Max amount** | `maxAmountUsd` | Passing fees to users | Sponsors gas and bridging only for deposits up to this USD value. | | **Swap** | `"all"`, `"none"` | Swap sponsorship | Covers the DEX swap fee when a token conversion is needed. Default: `"none"`. | The protocol fee is always sponsored. A setting your plan doesn't include is overwritten when you save it: gas and bridging to `"all"` with no `maxAmountUsd`, and swap to `"none"`. [Contact Rhinestone](https://www.rhinestone.dev/contact) to enable either option. ## Configure sponsorship ```ts theme={null} const DEPOSIT_SERVICE_URL = "https://v1.orchestrator.rhinestone.dev/deposit-processor"; const API_KEY = "YOUR_RHINESTONE_API_KEY"; const headers = { "Content-Type": "application/json", "x-api-key": API_KEY, }; ``` Sponsorship is configured per source chain using [CAIP-2](https://chainagnostic.org/CAIPs/caip-2) identifiers. Each chain is configured independently — there's no global toggle. With passing fees to users, chains without explicit config default to no sponsorship; without it, they're fully sponsored like every other chain. ```ts theme={null} await fetch(`${DEPOSIT_SERVICE_URL}/setup`, { method: "POST", headers, body: JSON.stringify({ params: { sponsorship: { // Base: fully sponsored, swaps included "eip155:8453": { gas: "all", bridging: "all", swap: "all" }, // Optimism: only gas, up to $1,000 deposits "eip155:10": { gas: "all", maxAmountUsd: 1000 }, // Arbitrum: gas for deployed accounts only "eip155:42161": { gas: "deployed" }, // Ethereum, Polygon: no sponsorship (not listed) }, }, }), }); ``` This example needs both plan options. To clear all sponsorship rules, send `sponsorship: {}` in a partial `POST /setup` update. ## How sponsorship is resolved Each fee type is resolved independently when processing a deposit, based on the source chain config and the account's deployment status at that moment. * Each fee type is resolved independently. You can sponsor bridging without sponsoring gas, or vice versa. * Deployment status is checked at processing time, not at registration. An account registered before deployment will start receiving gas sponsorship once it's deployed (if the mode is `"deployed"`). * With passing fees to users, chains without explicit config default to no sponsorship, and omitting a fee type from the chain config is equivalent to `"none"`. ## Effect on deposit amount **Sponsored fees** are covered by your organization and billed to you monthly. The user receives the full bridged amount — if they deposit 100 USDC and fees are 0.50 USDC, they receive the full 100 USDC on the target chain. **Unsponsored fees** are deducted from the deposit. The user receives less than they sent — if they deposit 100 USDC and fees are 0.50 USDC, they receive 99.50 USDC. ## Learn more * [Gas & fee sponsorship](/transactions/sponsorship/overview) — sponsorship for transactions * [Dashboard](/home/resources/dashboard) — manage billing and monthly spend limits * [Fees](/deposits/headless/fees/fee-breakdown) — full fee type breakdown # Create an exchange connection Source: https://docs.rhinestone.dev/deposits/headless/funding/create-an-exchange-connection Create a Swapped Connect flow for funding from a centralized exchange balance. Start an exchange order for a registered account, then show Swapped's hosted Connect flow in your app. Headless means you do not use the Rhinestone widget; users still complete the provider flow in Swapped's UI. ## How it works 1. Your backend starts an order with `POST /onramp/orders` and `kind: "exchange"`. 2. Your app shows the hosted flow in an iframe or in-app browser. 3. The user chooses an exchange and completes the transfer in Swapped's hosted flow. 4. The order advances through its [stages](/deposits/headless/processing-and-tracking/track-onramp-and-exchange-orders#order-stages), pushed as [`ramp-order`](/deposits/headless/processing-and-tracking/webhooks#ramp-order) webhooks. 5. The funded crypto lands on the account and enters the standard deposit pipeline. ## Prerequisites * The account is [registered](/deposits/headless/setup/account-registration). Starting an order for an account that is not registered to your project returns `403 Unauthorized`. * A [webhook URL](/deposits/headless/processing-and-tracking/webhooks#configure-webhooks) is configured if you want order updates pushed rather than polled. * Calls are made from your backend. The endpoints require your API key, which never ships in client-side code. ```ts theme={null} const DEPOSIT_SERVICE_URL = "https://v1.orchestrator.rhinestone.dev/deposit-processor"; const API_KEY = "YOUR_RHINESTONE_API_KEY"; ``` ## Start an order ```ts theme={null} const response = await fetch(`${DEPOSIT_SERVICE_URL}/onramp/orders`, { method: "POST", headers: { "Content-Type": "application/json", "x-api-key": API_KEY }, body: JSON.stringify({ provider: "swapped", kind: "exchange", account: "0xUSER_ACCOUNT_ADDRESS", connection: "binance", }), }); const { orderId, nextAction, expiresAt } = await response.json(); ``` `provider`, `kind`, and `account` are required. There's no amount or payment-method prefill; the user chooses those inside the exchange flow. The optional fields: | Field | Type | Description | | - | - | - | | `connection` | `string` | Preselects the exchange or wallet (e.g. `"binance"`) | | `connections` | `string[]` | Your allowlist. Requires `connection`, which must be one of them; an unknown slug returns `400` | | `baseCountry` | `string` | User's country (ISO 3166-1 alpha-2) | | `baseCurrencyCode` | `string` | Fiat currency code | | `locale` | `string` | Flow language | | `merchantName` | `string` | Name shown on Swapped's confirm screen | | `merchantLogoUrl` | `string` | HTTPS logo shown beside `merchantName` | `connections` is not forwarded to Swapped, whose picker is configured per partner. Only `connection` narrows what a session shows, which is why declaring an allowlist without one is refused. The response matches the [onramp checkout response](/deposits/headless/funding/create-an-onramp-checkout#start-an-order): `202` with `orderId`, `nextAction`, and `expiresAt`. Full schema: [`POST /onramp/orders`](/api-reference/deposit-service/onramp/start-an-onramp-order). ## List exchanges List the connections to offer: ```ts theme={null} const response = await fetch( `${DEPOSIT_SERVICE_URL}/onramp/options?provider=swapped&kind=exchange`, { headers: { "x-api-key": API_KEY } }, ); const { connections } = await response.json(); // [{ connection: "binance", name: "Binance", logoUrl: null, kind: "exchange", appHandoff: "none" }, …] ``` By default this lists the centralized exchanges. Pass `connectionKind=wallet` or `connectionKind=all` for Web3 wallets, or `connections=binance,coinbase` to resolve your own allowlist. Inside an embedded browser, offer no `kind: "wallet"` entry: that rail hands off to a wallet app over a URL scheme the container can't open. Full schema: [`GET /onramp/options`](/api-reference/deposit-service/onramp/list-onramp-options). ## Show the hosted connection flow Embed `nextAction.url` in an iframe with the permissions needed by the provider: ```html theme={null}