
For detailed guidance on the implementation flow, please review our Integration Guide.
Create Trade
How do we create the "one-time" wallet?
How do we create the "one-time" wallet?
Generate a new Solana keypair using any standard library or SDK (e.g.,
This keypair serves as a compostable wallet exclusively for the transaction. This one-time wallet is responsible for the final transaction signature and gas fees.
@solana/web3.js
, solana-sdk
for Rust). This keypair serves as a compostable wallet exclusively for the transaction. This one-time wallet is responsible for the final transaction signature and gas fees.
How do we obtain loans from Vanish Core?
How do we obtain loans from Vanish Core?
Submit your unsigned transaction body along with the one-time wallet address. The one-time wallet address you create and broadcast with must be a regular Solana wallet, not an ATA. Vanish Core automatically injects loan and repay instructions at the transaction’s beginning and end, borrowing the requested amount from our hot wallets.
How do we construct the trading route?
How do we construct the trading route?
Fetch the route from Solana DEX aggregators, such as Jupiter, and assemble all swap instructions into a single Solana transaction body. Exclude loan/repay logic entirely - Vanish Core handles this injection. Ensure your one-time wallet address is set as the signer for all swap instructions.
What do we initially submit to Vanish Core?
What do we initially submit to Vanish Core?
Submit an unsigned Solana transaction body containing:Make sure to exclude loan/repay logic entirely - Vanish Core will inject and return the transaction body to you with these instructions added.
- All DEX/swap instructions for your trading route
- One-time wallet address as the transaction signer
The one-time wallet address you create and broadcast with must be a regular Solana wallet, not an ATA.
What do we receive back from Vanish Core?
What do we receive back from Vanish Core?
You receive a partially-signed transaction payload with:
- Your original swap instructions (unmodified)
- Injected loan instructions (at the beginning)
- Injected repay instructions (at the end)
- Vanish Core’s signature applied
How to broadcast the partially-signed transaction?
How to broadcast the partially-signed transaction?
Sign the returned transaction body with your one-time wallet’s private key, then broadcast this through your pre-existing RPC/Node infrastructure. The transaction requires two signatures: Vanish Core’s (already applied) and your one-time wallet’s (your responsibility).
What happens if the trade fails?
What happens if the trade fails?
All operations revert atomically if any instruction fails. You bear no financial liability since the loan only executes if the repay instruction can complete successfully. Failed transactions only cost you the base network transaction fee.
The
The
/commit
endpoint must be called for all transactions, regardless of their final status (success, failure, or expiration). This is to ensure balances are unfrozen and reverted if a transaction has failed.Performance & Latency
What's the expected latency overhead?
What's the expected latency overhead?
You can expect Vanish Core’s private trading capabilities to add a
50ms benchmark
to your trade’s finality, on top of your existing RPC/Node transaction submission time.Authentication & Integrity
How do we authenticate API calls?
How do we authenticate API calls?
All API endpoints are authenticated using
x-api-key
in the request header.API keys are provisioned during onboarding and should be kept secure.How can we verify transaction integrity?
How can we verify transaction integrity?
The API returns complete transaction bytes. You can inspect the transaction body to verify:
- Your original instructions remain unchanged
- Only loan/repay instructions were added
- No unauthorized modifications occurred
Fees & Network Congestion
Where do we take our platform's fee?
Where do we take our platform's fee?
Vanish Core automatically deducts its fee within the repay instruction. You will deduct your fee within the instruction as well and the result will be automatically repaid to Vanish Core.
How do priority fees work during network congestion?
How do priority fees work during network congestion?
You can specify priority fees and slippage in your transaction body as you would when submitting a regular transaction. Vanish Core preserves your trade parameters when modifying the transaction.