Get Instructions
POST /api/v1/instructions — Get raw instructions for custom transaction composition.
Headers
Optional API key: Bearer vulcx_.... Anonymous calls are allowed but capped at a small per-IP rate limit — see Rate limits.
"Bearer vulcx_..."
Body
Parameters for getting raw swap instructions. Same as SwapRequest without skipSimulation.
User's wallet address (signer).
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
"So11111111111111111111111111111111111111112"
"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"
"1000000000"
ExactIn, ExactOut "ExactIn"
50
Optional firm-quote ID from GET /quote (or a WebSocket quote push). Pair, amount, and swapMode must match the original quote. The exact quoted route is replayed and min-out anchors to the quoted price instead of a fresh re-quote.
"q_b15372a8d82a93d1e328ae24e5d3669a"
Firm (price-or-fail) redemption — requires quoteId and only works within the quote's firmForMs window. Slippage collapses to the server's firm margin (default 10 bps) around the quoted price; slippageBps is ignored. If the route drifted past the margin the request fails with 409 instead of executing at a worse price.
false
Optional referrer wallet (base58). Receives integratorFeeBps in full, paid on-chain in the output token in the same transaction as the swap. Required whenever integratorFeeBps is set.
"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP"
Optional Fogo session account (base58). When set, the response contains a single session-shaped route instruction: the session account is the signing authority (userWallet's ATAs still hold the funds), the aggregator's session-signer PDA rides along, and NO ATA-create or SOL-wrap instructions are emitted — see requiredTokenAccounts. Send via the Fogo Sessions SDK (session key signs, paymaster pays). Session routes are currently Valiant-V1-only.
"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c"
Your own fee rate in basis points of the output, kept by you in full. Requires referrer — a rate with no wallet to pay it to returns 400. Added to platformFeeBps, not carved out of it; the sum may not exceed 100 bps.
0 <= x <= 10020