# Vanish Core - LLM Reference Vanish Core is a private DeFi API for Solana. It allows any swap-based application to offer shielded swap execution, and any integrated protocol to open a lending position against the user's balance and use those funds inside its own instructions. Both wrap the caller's unsigned transaction and route it through a one-time wallet funded from Vanish's trading accounts. Nothing is restricted to a particular venue: any DEX, any aggregator, and any lending provider works, because the caller's instructions are passed through unchanged. Full documentation: https://core.vanish.trade --- ## Base URLs - **Production:** `https://core-api.vanish.trade` --- ## Authentication All endpoints require: ``` x-api-key: Content-Type: application/json ``` API keys are provisioned during onboarding. Contact the Vanish team via Discord: https://discord.gg/vanishtrade Requests are capped per second, per team. Exceeding the cap returns `429`. --- ## Key Concepts ### Vanish Balance Users hold a balance inside Vanish's system. Funds must be deposited before trading and can be withdrawn afterwards. The balance is updated when the transaction is committed. ### One-Time Wallet Every trade and every lending action is routed through a one-time wallet, temporarily funded from Vanish's trading accounts. Set the returned address as the signer for all of your instructions in the unsigned transaction. | | Trade | Lending | |---|---|---| | Get it from | `GET /trade/one-time-wallet` | `POST /borrow/smart-wallet` | | Lifetime | A single trade - **never reuse it** | One position - reused for every lending action on it | | Your transaction field | `swap_transaction` | `main_tx` | | Commit at | `POST /commit` | `POST /borrow/commit` | ### Commit Pattern **Every transaction** MUST be followed by a commit with the on-chain transaction signature. This resolves the balance from its pending state. Commit every action, and check the pending endpoints whenever a user loads their account. Both commit endpoints are fully idempotent. - `POST /commit` - deposits, trades, withdrawals - `POST /borrow/commit` - lending actions (opens and settles) The two are **not interchangeable**. ### Position A lending position lives in its own one-time wallet, identified by `smart_wallet_id`. It is `open` from the first committed borrow until a settle with `cleanup_leftover_sol` is committed, which returns any leftover SOL to Vanish's trading accounts and closes it. Read positions with `POST /borrow/positions`. ### Same Wallet In, Same Wallet Out Withdrawals are always routed back to the wallet that made the original deposit. This is enforced at the protocol level and cannot be bypassed. ### SOL Native Mint Address `11111111111111111111111111111111` ### Amounts All SOL amounts are in **lamports** (1 SOL = 1,000,000,000 lamports). SPL token amounts use the token's own decimal precision. Numeric fields accept a JSON number or the same value as a string. --- ## Signing Every POST except the two commit endpoints requires a signed message proving ownership of `user_address`. The GET endpoints need only the API key. Sign with the user's Ed25519 keypair and base64-encode the result. Timestamps must be **Unix time in milliseconds** - stale timestamps are rejected. Every message shares the same prefix and differs only in the `Details:` line: ``` By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS) Details: {details} ``` | Used by | `Details:` line | Pass as | |---|---|---| | `/account/balances`, `/account/points`, `/account/pending` | `read:{timestamp}` | `signature` | | `/borrow/positions`, `/borrow/pending` | `read:{timestamp}` | `user_signature` | | `POST /trade/create` | `trade:{source_token_address}:{target_token_address}:{amount}:{loan_additional_sol}:{timestamp}:{jito_tip_amount}` | `user_signature` | | `POST /withdraw/create` | `withdraw:{token_address}:{amount}:{additional_sol}:{timestamp}` | `user_signature` | | `POST /borrow/smart-wallet` | `borrow-smart-wallet:{protocol_label}:{timestamp}` | `user_signature` | | `POST /borrow/initiate` | `borrow:{smart_wallet_id}:{source_token_address}:{amount}:{loan_additional_sol}:{timestamp}:{jito_tip_amount}` | `user_signature` | | `POST /borrow/settle` | `settle:{smart_wallet_id}:{token_address}:{amount}:{loan_additional_sol}:{cleanup_leftover_sol}:{timestamp}` | `user_signature` | **The formats are not interchangeable, and the value order differs between them:** `timestamp` is second from last in the trade and lending formats, but last in the withdraw and settle formats. The settle format has no tip value. **The field name differs too:** the account reads take the result as `signature`; every other signed endpoint - including `/borrow/pending` and `/borrow/positions`, which sign the same read message - takes it as `user_signature`. All field values must exactly match what you send in the request body, including `cleanup_leftover_sol`, rendered as it appears in the JSON body (`true` or `false`). On `/borrow/smart-wallet`, `/borrow/initiate`, and `/borrow/settle` the signature is valid for 10 minutes; read-scoped requests are accepted within 24 hours. On the lending endpoints a timestamp outside its window returns `400`, while a mismatched message or wrong key returns `401`. ### TypeScript Signing Helper ```typescript import * as nacl from 'tweetnacl'; import { Keypair } from '@solana/web3.js'; const TOS = "By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)"; function signMessage(details: string, keypair: Keypair): string { const message = [TOS, "", `Details: ${details}`].join('\n'); const sig = nacl.sign.detached(new TextEncoder().encode(message), keypair.secretKey); return Buffer.from(sig).toString('base64'); } // timestamp = Date.now().toString() - milliseconds, not seconds const timestamp = Date.now().toString(); signMessage(`read:${timestamp}`, keypair); signMessage(`trade:${source}:${target}:${amount}:${loanSol}:${timestamp}:${jitoTip}`, keypair); signMessage(`withdraw:${token}:${amount}:${additionalSol}:${timestamp}`, keypair); signMessage(`borrow-smart-wallet:${protocolLabel}:${timestamp}`, keypair); signMessage(`borrow:${smartWalletId}:${source}:${amount}:${loanSol}:${timestamp}:${jitoTip}`, keypair); signMessage(`settle:${smartWalletId}:${token}:${amount}:${loanSol}:${cleanup}:${timestamp}`, keypair); ``` ### Rust Signing Helper ```rust use solana_sdk::signature::{Keypair, Signer}; use base64::{engine::general_purpose, Engine as _}; const TOS: &str = "By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)"; // timestamp = chrono::Utc::now().timestamp_millis().to_string() - milliseconds, not seconds fn sign_message(details: &str, keypair: &Keypair) -> String { let message = format!("{TOS}\n\nDetails: {details}"); let sig = keypair.sign_message(message.as_bytes()); general_purpose::STANDARD.encode(sig.as_ref()) } ``` --- ## Endpoints ### GET /health Check API availability. No signed request required - just the API key header. **Response:** ```json { "status": "healthy" } ``` --- ### GET /deposit_address Get the deposit address for a given token. **Query parameters:** - `token_address` (required) - token mint address. Use `11111111111111111111111111111111` for native SOL. **Response:** ```json { "address": "7ozoNcVqgptbAUHjLR1vNHgEfKiE5aYufStEHzJhxKeG" } ``` Always fetch a fresh address before each deposit - addresses may rotate to ensure maximum privacy. --- ### POST /withdraw/create Create a withdrawal transaction. Funds are always returned to the original deposit wallet. **Request body:** ```json { "user_address": "", "token_address": "", "amount": "", "additional_sol": "", "timestamp": "", "user_signature": "" } ``` **Field notes:** - `additional_sol`: covers ATA creation at the destination wallet if it doesn't exist. Recommended `2000000` (0.002 SOL). - Withdrawal destination is always the user's original deposit wallet - cannot be changed. **Response:** ```json { "tx_id": "", "transaction_data": "" } ``` Broadcast `transaction_data` through your RPC, then call `POST /commit` with the on-chain signature. --- ### GET /trade/one-time-wallet Get a one-time wallet address for a trade. **Response:** ```json { "address": "" } ``` **Critical:** Never reuse this address across trades. Fetch a fresh one for every single trade. --- ### POST /trade/create Submit a private swap transaction to Vanish. **Request body:** ```json { "user_address": "", "source_token_address": "", "target_token_address": "", "amount": "", "swap_transaction": "", "one_time_wallet": "
", "loan_additional_sol": "12000000", "jito_tip_amount": "1000000", "split_repay": 1, "timestamp": "", "user_signature": "", "prefer_non_jito": { "compute_unit_price": "", "compute_unit_limit": "", "custom_tip_address": "", "custom_tip_amount": "" } } ``` **Field notes:** - `swap_transaction`: base64-encoded **unsigned** transaction. The one-time wallet must be the signer for all swap instructions. Do NOT pre-sign. - `loan_additional_sol`: Recommended `12000000` (0.012 SOL). Covers ATA creation costs. Any unused amount is automatically refunded after settlement. - `jito_tip_amount`: Minimum recommended `1000000` (0.001 SOL). Only applied on the Jito route. - `split_repay`: Use `1` for most trades. Only increase if `amount_out` exceeds 0.5% of the token's total supply. Maximum `9`. On non-Jito route, always use `1`. - `prefer_non_jito`: **Omit this field entirely** to route via Jito (default). Include it to self-broadcast. **Response - Jito route (default, prefer_non_jito omitted):** ```json { "tx_id": "", "jito_bundle_id": "", "transaction": null } ``` **Response - Non-Jito route (prefer_non_jito included):** ```json { "tx_id": "", "jito_bundle_id": null, "transaction": "" } ``` **Non-Jito note:** Broadcast the `transaction` field through your own RPC. Then call `POST /commit` with the **on-chain signature** you receive from broadcasting - not the `tx_id` from this response. --- ### POST /commit Resolve a deposit, trade, or withdrawal. Must be called after **every** transaction - success, failure, or expiry. Fully idempotent: calling it twice with the same `tx_id` is safe and returns the same result. **Request body:** ```json { "tx_id": "" } ``` **Response:** ```json { "status": "completed", "action_type": "trade", "already_processed": false, "vanish_fee": "5000", "tx_fee": "5000", "balance_changes": [ { "token_address": "", "change": "" } ] } ``` **Commit statuses:** | Status | Meaning | Action | |---|---|---| | `completed` | Settled - balance updated | Continue | | `pending` | On-chain confirmation or compliance check in progress | Poll again with the same `tx_id` | | `failed` | Transaction rejected on-chain - balance released | Inform user | | `expired` | Not confirmed within the required window - balance released | Inform user | | `rejected` | Deposit failed compliance screening - funds will be refunded to origin wallet | Do not re-attempt | If `already_processed: true` - this `tx_id` was already committed in a prior call. The response still contains the correct `status` and `balance_changes`. --- ### POST /borrow/smart-wallet Create the one-time wallet a lending position lives in. Provision once per position and reuse it. **Request body:** ```json { "user_address": "", "protocol_label": "kamino-lend-v2", "external_ref": "", "timestamp": "", "user_signature": "" } ``` **Response:** ```json { "smart_wallet_id": 4821, "address": "" } ``` **Field notes:** - `protocol_label`: free-form label identifying the provider or integration this position belongs to. Any lending provider works - your instructions are passed through unchanged. - `external_ref`: optional opaque identifier for your own correlation, e.g. a vault or pool address. Not interpreted by Vanish and not part of the signed message; stored as-is and returned unchanged on `/borrow/positions`. Use it to tell apart multiple open positions under the same `protocol_label` - each deposit provisions its own one-time wallet, so one instance on your side can map to several. - `smart_wallet_id`: identifies the position on `/borrow/initiate`, `/borrow/settle`, and `/borrow/positions`. Persist it. - `address`: set this as the signer and fee payer of the unsigned transaction you pass as `main_tx`. --- ### POST /borrow/initiate Open a lending position: move part of the user's balance into the position's one-time wallet and execute your instructions from it in the same transaction. Spends the same balance a trade spends; rejected with a `400` if the balance is short. **Request body:** ```json { "smart_wallet_id": 4821, "user_address": "", "source_token_address": "", "amount": "250000000", "loan_additional_sol": "2200000", "jito_tip_amount": "10000", "main_tx": "", "timestamp": "", "user_signature": "" } ``` **Field notes:** - `main_tx`: base64-encoded **unsigned** transaction carrying your deposit or open instructions, with the one-time wallet as signer and fee payer. Do NOT pre-sign. - `amount`: must be greater than 0. - `loan_additional_sol`: covers ATA creation in the one-time wallet. Any unused amount is refunded. The wallet starts empty, so budget `2039280` lamports per token account the first time a position uses that token. Pass `0` once it holds enough. - `jito_tip_amount`: only applied if the wrapped transaction overflows Solana's size limit and a two-transaction bundle is used - but always required, since it is part of the signed message either way. - Rejected with `400` if the amount is not greater than 0, the one-time wallet does not belong to the user, the balance available for the token is insufficient, the transaction fails simulation, or the same signature was already used. **Response:** ```json { "action_id": 88213, "tx_id": "", "transaction": "", "jito_bundle_id": null } ``` Vanish picks the route by transaction size. If `transaction` is non-null, broadcast it. If `jito_bundle_id` is set instead, `transaction` is `null` and Vanish already submitted the bundle. Call `POST /borrow/commit` with `tx_id` either way. --- ### POST /borrow/settle Return the advanced funds from the position's one-time wallet to Vanish's trading accounts, wrapped around your own withdraw or close instructions. **Request body:** ```json { "smart_wallet_id": 4821, "user_address": "", "token_address": "", "amount": "253000000", "loan_additional_sol": "0", "cleanup_leftover_sol": true, "main_tx": "", "timestamp": "", "user_signature": "" } ``` **Field notes:** - `cleanup_leftover_sol`: when `true`, any SOL left in the one-time wallet is returned to Vanish's trading accounts (credited to the user) and the position is closed. Set it **only** on the settle that fully closes the position - a partial withdrawal still needs the remaining SOL. - `main_tx`: unsigned, one-time wallet as signer - same rules as `/borrow/initiate`. **Response:** ```json { "action_id": 88240, "tx_id": "", "transaction": "" } ``` `transaction` is always populated on this route - settle has no bundle route, so you always broadcast it yourself. --- ### POST /borrow/commit Resolve a lending or settle action. Must be called after **every** `/borrow/initiate` and `/borrow/settle` - success, failure, or expiry. Requires no signature, only the API key. **Request body:** ```json { "tx_id": "" } ``` **Response:** ```json { "status": "completed", "action_type": "borrow", "already_processed": false, "balance_changes": [ { "token_address": "", "change": "" } ], "vanish_fee": "", "tx_fee": "5000", "completed_at": "2026-08-31T18:22:04.112Z" } ``` Returns the same statuses as `POST /commit` except `rejected`, which applies to deposits only. `action_type` is `borrow` or `settle`. `balance_changes` is `null` while pending, and `completed_at` is set once terminal. A `400 Please commit the action again after some time` means a two-transaction Jito bundle is still inside its grace window - retry later, this is not fatal. --- ### POST /borrow/positions Get a user's lending positions, each with token balances read live from chain. **Request body:** ```json { "user_address": "", "timestamp": "", "user_signature": "" } ``` **Response:** ```json [ { "smart_wallet_id": 4821, "address": "", "protocol_label": "kamino-lend-v2", "external_ref": null, "status": "open", "created_at": "2026-08-31T18:20:11", "closed_at": null, "balances": [ { "token_address": "", "balance": "", "program_id": "" } ], "has_active_balance": true } ] ``` **Field notes:** - `status`: `open` or `closed`. A position becomes `closed` once a settle with `cleanup_leftover_sol` is committed. - `has_active_balance`: `true` only if `balances` holds a non-SOL token with a positive balance - leftover SOL dust alone does not count. Filter on this instead of applying a dust threshold. - `balances`: read live from chain. An empty array means the lookup failed - treat it as unknown, not a guaranteed zero. - Note the signature field is `user_signature` on this endpoint. --- ### POST /account/balances Get a user's current Vanish balance across all tokens. **Request body:** ```json { "user_address": "", "timestamp": "", "signature": "" } ``` **Response:** ```json [ { "token_address": "", "balance": "", "program_id": "" } ] ``` --- ### POST /account/points Get a user's point stats. **Request body:** ```json { "user_address": "", "timestamp": "", "signature": "" } ``` **Response:** ```json { "total": "", "by_ref": "", "last_7days": "", "multiplier": "" } ``` --- ### POST /account/pending Get all deposits, trades, and withdrawals that were submitted but never committed. Call this on startup to detect and recover any interrupted flows. **Request body:** ```json { "user_address": "", "timestamp": "", "signature": "" } ``` **Response:** ```json [ { "tx_id": "", "action_type": "trade", "status": "pending", "created_at": "2025-01-01T00:00:00Z", "frozen_balance_changes": [{ "token_address": "", "change": "" }] } ] ``` Call `POST /commit` with each returned `tx_id` to resolve the balances. --- ### POST /borrow/pending Get all lending and settle actions that were submitted but never committed. **Request body:** ```json { "user_address": "", "timestamp": "", "user_signature": "" } ``` **Response:** ```json [ { "tx_id": "", "action_type": "borrow", "status": "pending", "created_at": "1756981205000", "frozen_balance_changes": [{ "token_address": "", "change": "" }] } ] ``` Call `POST /borrow/commit` with each returned `tx_id` to resolve the actions. `frozen_balance_changes` are the changes recorded when the action was initiated, before on-chain confirmation. --- ### GET /trade/debug Retrieve Jito bundle simulation logs for a submitted trade. Useful for debugging failed Jito submissions. **Query parameters:** - `tx_id` (required) - transaction ID of the trade to retrieve logs for. **Response:** ```json { "jito_simulation_log": "" } ``` --- ## The Flows ### Deposit Flow ``` 1. GET /deposit_address?token_address={mint} → returns { address } 2. Transfer on-chain to returned address. Wait for confirmation. 3. POST /commit { tx_id: "" } → if status = "pending": poll /commit again with same tx_id → if status = "rejected": do not re-attempt - funds auto-refunded → if status = "completed": balance is ready for trading ``` ### Trade Flow ``` 1. GET /trade/one-time-wallet → returns { address: oneTimeWallet } 2. Build unsigned swap transaction with your DEX aggregator. Set oneTimeWallet as the signer for all swap instructions. Do NOT sign the transaction. 3. POST /trade/create { ..., swap_transaction: unsignedTx, one_time_wallet: oneTimeWallet, ... } 4a. Jito route (default): → call POST /commit { tx_id: trade.tx_id } 4b. Non-Jito route: → broadcast trade.transaction via your RPC → call POST /commit { tx_id: } ``` ### Lending Flow ``` 1. POST /borrow/smart-wallet { user_address, protocol_label, timestamp, user_signature } → returns { smart_wallet_id, address } → provision once per position; reuse for every lending action on it 2. Build your deposit/open instructions into a single UNSIGNED transaction. Set the returned address as the signer and fee payer. Do NOT sign it. 3. POST /borrow/initiate { smart_wallet_id, user_address, source_token_address, amount, loan_additional_sol, jito_tip_amount, main_tx, timestamp, user_signature } → returns { action_id, tx_id, transaction, jito_bundle_id } 4. If transaction is non-null: broadcast it via your RPC. If jito_bundle_id is set: Vanish already submitted the bundle - broadcast nothing. 5. POST /borrow/commit { tx_id } → if status = "pending": poll again with the same tx_id → if 400 "Please commit the action again after some time": bundle grace window, retry later → if status = "completed": funds are in the one-time wallet, position is open ``` ### Settle Flow ``` 1. POST /borrow/positions - check what the one-time wallet holds on-chain 2. Build your withdraw/close instructions into a single UNSIGNED transaction, one-time wallet as signer and fee payer. 3. POST /borrow/settle { smart_wallet_id, user_address, token_address, amount, loan_additional_sol, cleanup_leftover_sol, main_tx, timestamp, user_signature } → returns { action_id, tx_id, transaction } → cleanup_leftover_sol: true only on the settle that fully closes the position 4. Broadcast transaction via your RPC. 5. POST /borrow/commit { tx_id } → on "completed" with cleanup_leftover_sol: true, the position status becomes "closed" ``` ### Withdraw Flow ``` 1. POST /account/balances - verify user has sufficient balance 2. POST /withdraw/create { user_address, token_address, amount, additional_sol, timestamp, user_signature } → returns { tx_id, transaction_data } 3. Broadcast transaction_data via your RPC. 4. POST /commit { tx_id: "" } ``` ### Interrupted Flow Recovery ``` On application startup: 1. POST /account/pending - uncommitted deposits, trades, withdrawals 2. For each result: POST /commit { tx_id: action.tx_id } 3. POST /borrow/pending - uncommitted lending and settle actions 4. For each result: POST /borrow/commit { tx_id: action.tx_id } Both commit endpoints are idempotent - safe to call even if already processed. Then read POST /account/balances and POST /borrow/positions for what the user now holds. ``` --- ## HTTP Status Codes | Code | Meaning | Action | |---|---|---| | `200` | Success | Parse response normally | | `400` | Bad request - invalid body or parameters; nothing was submitted on-chain | Check request schema | | `401` | Unauthorized - invalid API key or signature verification failed | Check x-api-key and signing format | | `429` | Rate limit exceeded - per-second cap for your team | Back off; contact the Vanish team for higher RPS | | `500` | Internal server error | Retry | Lending endpoints return two error shapes: endpoint errors carry `error` and `message`, while API key and rate limit errors carry `error` only. Check for the presence of `message` rather than assuming one shape. --- ## Common Mistakes | Mistake | Consequence | Fix | |---|---|---| | Pre-signing the transaction | Trade or lending action fails | Submit unsigned only - Vanish signs it | | Reusing a one-time wallet across trades | Trade fails | Fetch a fresh one-time wallet per trade | | Provisioning a new wallet per action | Position state fragmented | Provision once per position, reuse the same smart_wallet_id | | Building the transaction with the user's wallet as signer | Fails, or fails simulation | The one-time wallet must be the signer and fee payer | | Not committing | Balance left pending | Commit every action; check the pending endpoints on account load | | Committing a lending tx_id at /commit | Action never resolves | Lending and settle tx_ids are committed at /borrow/commit | | Polling commit with a new tx_id | Creates a new pending state | Poll with the original tx_id | | Timestamp in seconds instead of milliseconds | 401 error | Use `Date.now()` in JS, `timestamp_millis()` in Rust | | Mismatched signature fields | 401 error | Signed values must exactly match the request body fields | | Wrong tx_id on non-Jito commit | Balance not resolved | Use the on-chain signature from broadcasting, not tx_id from /trade/create | | Skipping commit on failed/expired transactions | Balance frozen | Commit must be called for every outcome, including failures | | loan_additional_sol = 0 the first time a position uses a token | Fails simulation - no SOL for ATA rent | Budget ~2039280 lamports per token account | | cleanup_leftover_sol = true on a partial settle | Position closed while still in use | Set it only on the settle that fully closes the position | | Treating an empty positions balances array as zero | Wrong reconciliation decision | An empty array means the lookup failed - treat it as unknown and re-read | --- ## Recommended Parameter Values | Parameter | Recommended Value | Notes | |---|---|---| | `loan_additional_sol` (trade) | `12000000` | 0.012 SOL. Covers ATA creation. Unused amount automatically refunded. | | `loan_additional_sol` (lending) | `2039280` \+ padding | ATA rent in the one-time wallet. Unused amount automatically refunded. Needed the first time a position uses a token; pass `0` once it holds enough. | | `jito_tip_amount` (trade) | `1000000` | Minimum recommended 0.001 SOL. Higher tips improve bundle inclusion. | | `split_repay` | `1` | Use `1` for most trades. Only increase if amount_out > 0.5% of token supply. Max `9`. | | `additional_sol` (withdraw) | `2000000` | 0.002 SOL. Covers ATA creation at destination. | | `cleanup_leftover_sol` (settle) | `false`, then `true` | `false` on partial settles; `true` only on the settle that closes the position. | --- ## Compliance Vanish enforces a **same wallet in, same wallet out** model. Every user's connected wallet is the fixed origin for all fund movements - deposits come from it, withdrawals go back to it. This cannot be bypassed. Every deposit and withdrawal is screened in real time against OFAC and global sanctions lists by Elliptic and Range. A `rejected` commit status means the transaction failed compliance screening - funds are automatically refunded to the originating wallet. Access is blocked from the U.S., U.K., OFAC-sanctioned, and other high-risk jurisdictions. --- ## Security Vanish's signing infrastructure is powered by **Turnkey** - wallet infrastructure built on hardware Trusted Execution Environments (TEEs). Private material is never stored unencrypted and is never exposed to Vanish, Turnkey, or any external process. All signing operations run inside a secure enclave, initiated only by the user's authenticated request. - Vanish never holds user private keys - No human approval in the loop - all processes are fully automated - Integrating Vanish introduces no additional custodial risk to your platform - Infrastructure audited by **Halborn** (independent blockchain security firm) - Operational security by **Groom Lake** (staffed by NSA/CIA veterans) --- ## Links - Introduction: https://docs.vanish.trade/start/introduction - Compliance: https://docs.vanish.trade/start/compliance - Security: https://docs.vanish.trade/start/security - Signing: https://docs.vanish.trade/guide/integration/signing - Integration Overview: https://docs.vanish.trade/guide/integration/overview - Trading (deposit, trade, withdraw): https://docs.vanish.trade/guide/integration/trading - Lending (open, settle, position state): https://docs.vanish.trade/guide/integration/lending - Quickstart (TypeScript/Rust code examples): https://docs.vanish.trade/guide/quickstart/setup - Error Handling: https://docs.vanish.trade/guide/handling - FAQ: https://docs.vanish.trade/guide/faq - Health endpoint: https://docs.vanish.trade/api-reference/health - GET /deposit_address: https://docs.vanish.trade/api-reference/funds/deposit_address - POST /withdraw/create: https://docs.vanish.trade/api-reference/funds/withdraw - GET /trade/one-time-wallet: https://docs.vanish.trade/api-reference/trade/one-time-wallet - POST /trade/create: https://docs.vanish.trade/api-reference/trade/create - POST /commit: https://docs.vanish.trade/api-reference/commit - POST /borrow/smart-wallet: https://docs.vanish.trade/api-reference/lending/smart-wallet - POST /borrow/initiate: https://docs.vanish.trade/api-reference/lending/initiate - POST /borrow/commit: https://docs.vanish.trade/api-reference/lending/commit - POST /borrow/settle: https://docs.vanish.trade/api-reference/lending/settle - POST /borrow/positions: https://docs.vanish.trade/api-reference/lending/positions - POST /borrow/pending: https://docs.vanish.trade/api-reference/lending/pending - POST /account/balances: https://docs.vanish.trade/api-reference/account/get_balances - POST /account/points: https://docs.vanish.trade/api-reference/account/get_points - POST /account/pending: https://docs.vanish.trade/api-reference/account/get_pending_actions - Discord: https://discord.gg/vanishtrade