curl --request POST \
--url https://api.vulcx.xyz/api/v1/instructions \
--header 'Content-Type: application/json' \
--data '
{
"userWallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG",
"amount": "1000000000",
"swapMode": "ExactIn",
"slippageBps": 50,
"quoteId": "q_b15372a8d82a93d1e328ae24e5d3669a",
"firm": false,
"referrer": "EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP",
"sessionAccount": "SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c",
"integratorFeeBps": 20
}
'import requests
url = "https://api.vulcx.xyz/api/v1/instructions"
payload = {
"userWallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG",
"amount": "1000000000",
"swapMode": "ExactIn",
"slippageBps": 50,
"quoteId": "q_b15372a8d82a93d1e328ae24e5d3669a",
"firm": False,
"referrer": "EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP",
"sessionAccount": "SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c",
"integratorFeeBps": 20
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userWallet: '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM',
inputMint: 'So11111111111111111111111111111111111111112',
outputMint: 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
amount: '1000000000',
swapMode: 'ExactIn',
slippageBps: 50,
quoteId: 'q_b15372a8d82a93d1e328ae24e5d3669a',
firm: false,
referrer: 'EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP',
sessionAccount: 'SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c',
integratorFeeBps: 20
})
};
fetch('https://api.vulcx.xyz/api/v1/instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vulcx.xyz/api/v1/instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userWallet' => '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM',
'inputMint' => 'So11111111111111111111111111111111111111112',
'outputMint' => 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
'amount' => '1000000000',
'swapMode' => 'ExactIn',
'slippageBps' => 50,
'quoteId' => 'q_b15372a8d82a93d1e328ae24e5d3669a',
'firm' => false,
'referrer' => 'EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP',
'sessionAccount' => 'SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c',
'integratorFeeBps' => 20
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vulcx.xyz/api/v1/instructions"
payload := strings.NewReader("{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vulcx.xyz/api/v1/instructions")
.header("Content-Type", "application/json")
.body("{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vulcx.xyz/api/v1/instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"amountIn": "1000000000",
"amountOut": "145320000",
"otherAmountThreshold": "144593400",
"feeAmount": "100005",
"route": [
"<string>"
],
"hopCount": 1,
"pools": [
"<string>"
],
"instructions": [
{
"programId": "<string>",
"data": "<string>",
"accounts": [
{
"publicKey": "<string>",
"isSigner": true,
"isWritable": true
}
]
}
],
"addressLookupTableAddresses": [
"<string>"
],
"requiredTokenAccounts": [
"<string>"
],
"platformFeeBps": 15,
"platformFeeAmount": "29064",
"integratorFeeBps": 20,
"integratorFeeAmount": "29064"
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "invalid api key"
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "rate limit exceeded"
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}Get Instructions
POST /api/v1/instructions — Get raw instructions for custom transaction composition.
curl --request POST \
--url https://api.vulcx.xyz/api/v1/instructions \
--header 'Content-Type: application/json' \
--data '
{
"userWallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG",
"amount": "1000000000",
"swapMode": "ExactIn",
"slippageBps": 50,
"quoteId": "q_b15372a8d82a93d1e328ae24e5d3669a",
"firm": false,
"referrer": "EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP",
"sessionAccount": "SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c",
"integratorFeeBps": 20
}
'import requests
url = "https://api.vulcx.xyz/api/v1/instructions"
payload = {
"userWallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG",
"amount": "1000000000",
"swapMode": "ExactIn",
"slippageBps": 50,
"quoteId": "q_b15372a8d82a93d1e328ae24e5d3669a",
"firm": False,
"referrer": "EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP",
"sessionAccount": "SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c",
"integratorFeeBps": 20
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userWallet: '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM',
inputMint: 'So11111111111111111111111111111111111111112',
outputMint: 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
amount: '1000000000',
swapMode: 'ExactIn',
slippageBps: 50,
quoteId: 'q_b15372a8d82a93d1e328ae24e5d3669a',
firm: false,
referrer: 'EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP',
sessionAccount: 'SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c',
integratorFeeBps: 20
})
};
fetch('https://api.vulcx.xyz/api/v1/instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vulcx.xyz/api/v1/instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userWallet' => '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM',
'inputMint' => 'So11111111111111111111111111111111111111112',
'outputMint' => 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
'amount' => '1000000000',
'swapMode' => 'ExactIn',
'slippageBps' => 50,
'quoteId' => 'q_b15372a8d82a93d1e328ae24e5d3669a',
'firm' => false,
'referrer' => 'EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP',
'sessionAccount' => 'SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c',
'integratorFeeBps' => 20
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vulcx.xyz/api/v1/instructions"
payload := strings.NewReader("{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vulcx.xyz/api/v1/instructions")
.header("Content-Type", "application/json")
.body("{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vulcx.xyz/api/v1/instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userWallet\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",\n \"inputMint\": \"So11111111111111111111111111111111111111112\",\n \"outputMint\": \"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG\",\n \"amount\": \"1000000000\",\n \"swapMode\": \"ExactIn\",\n \"slippageBps\": 50,\n \"quoteId\": \"q_b15372a8d82a93d1e328ae24e5d3669a\",\n \"firm\": false,\n \"referrer\": \"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP\",\n \"sessionAccount\": \"SesSj4KKBBWo9QCcVdXVLK6jYtwVv3xkQyEbLXjTd6c\",\n \"integratorFeeBps\": 20\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"amountIn": "1000000000",
"amountOut": "145320000",
"otherAmountThreshold": "144593400",
"feeAmount": "100005",
"route": [
"<string>"
],
"hopCount": 1,
"pools": [
"<string>"
],
"instructions": [
{
"programId": "<string>",
"data": "<string>",
"accounts": [
{
"publicKey": "<string>",
"isSigner": true,
"isWritable": true
}
]
}
],
"addressLookupTableAddresses": [
"<string>"
],
"requiredTokenAccounts": [
"<string>"
],
"platformFeeBps": 15,
"platformFeeAmount": "29064",
"integratorFeeBps": 20,
"integratorFeeAmount": "29064"
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "invalid api key"
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}{
"success": false,
"error": "rate limit exceeded"
}{
"success": false,
"error": "no route found",
"code": "NO_ROUTE",
"data": {
"simulation": {
"success": true,
"logs": [
"<string>"
],
"computeUnitsConsumed": 85000,
"insufficientFunds": true,
"slippageExceeded": true,
"error": "<string>",
"computeUnitsTotal": 90000,
"accountsNeeded": [
"<string>"
]
}
}
}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