https://core-api.vanish.trade
SOL Native Address: 11111111111111111111111111111111
Authentication: All endpoints require an x-api-key header. Most also require a signed message - see Signing.
The Vanish Core injection process adds approximately 200ms to finality. Your instructions are injected into Vanish’s transaction wrapper, keeping you in full control over route, slippage, and execution.
How It Works
When a trade or a lending action is submitted, Vanish:- Advances funds from its trading accounts to a one-time wallet.
- Wraps your transaction - your instructions are passed through unchanged, with settlement instructions added around them. Whichever DEX, aggregator, or lending provider you chose is untouched.
- Routes the transaction via Jito bundle or returns a signed payload for self-broadcast.
- Settles atomically at the end. If any instruction fails, everything reverts - failed transactions only cost the base network fee.
Compliance Model
Vanish operates on a same wallet in, same wallet out model: the user’s connected wallet is the only address you can deposit from and the only address withdrawals are returned to. This is enforced at the protocol level and cannot be bypassed - see Compliance. If a deposit commit returnsrejected, it failed compliance or risk screening. Funds are refunded to the originating wallet after extended screening completes; do not re-attempt until the refund is confirmed.
Handling Interrupted Flows
A transaction that is submitted but never committed stays in a pending state. Trades and lending actions are tracked separately, so each has its own pending endpoint and its own commit endpoint. Both commits are idempotent:
Call both on startup - see Recovering Pending Commits for code.
Amount Units
Amounts are always in the token’s smallest unit: lamports for SOL, where 1 SOL is 1,000,000,000 lamports, and its own decimals for an SPL token.Next Steps
Signing
One prefix, six formats. The exact
Details: line for every endpoint.Trading
Deposit, trade privately, and withdraw.
Lending
Open a position, deploy the funds, then settle.
Error Handling
Commit statuses, signature errors, and recovering interrupted flows.
