vanish, signMessage, broadcast, and commit helpers defined there.
Fund Your Account
Trading requires a Vanish balance: fetch a deposit address, send funds on-chain, then commit the transaction.1
Get a deposit address
2
Send SOL on-chain
3
Commit the deposit
Execute a Trade
Vanish wraps your swap instructions - it does not build the route itself. Fetch an unsigned transaction from your DEX aggregator of choice and pass it toPOST /trade/create.
Critical: set the one-time wallet as the transaction signer - not the user’s wallet. Pass it wherever your aggregator asks for the signing wallet or user public key.
1
Get a one-time wallet and build the swap
2
Create the trade and commit
prefer_non_jito to the request and commit the on-chain signature returned by broadcasting, not trade.tx_id. See Routing.Check Balances
SeePOST /account/balances for full reference.
Next Steps
- Lend - Open a position with funds advanced by Vanish, then settle it.
- Trading - The full reference for the trade flow, including routing guidance.
- Error Handling - Commit statuses and recovering interrupted flows.
- Before Going Live - The pre-launch checklist, covering both flows.
