Build an unsigned, simulated X1 swap transaction (base64 v0) for the given payer through t
Build an unsigned, simulated X1 swap transaction (base64 v0) for the given payer through the on-chain FortiBlox Router — routed, impact-capped, simulated before return; the 25 bps protocol fee is enforced in-program. Sign it with the payer key and broadcast via POST /api/tx/send (free). Amounts are raw base units. Requires a prior quote.
5000 (raw units)
price
3
calls / 30d
2
unique payers
2026-08-22
updated
Provider
app.fortiblox.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "EeWEeLTF7SCp4u3ttxWPjN169wdoZsKqbiszVcJY8NMG",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x581aB190DF2B2932175d987E787Acd28A85eAA1C",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"amountIn": "1000000",
"inputMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
"mode": "exactIn",
"outputMint": "So11111111111111111111111111111111111111112",
"payer": "4YksiSRD3VenFSXHGbaTAa9EEjN1Sxayqy3epMKhHBWB",
"slippageBps": 100
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"blockhash": "5iMvGtFseNWxJw248AanzxGjb8Weo9eSyUfwjpQ3e1BK",
"computeUnitLimit": 135000,
"expectedOut": "2049354266",
"feeAmount": "5123386",
"feeApplied": true,
"feeEnforcedOnChain": true,
"guardUsed": false,
"hopFallbackApplied": false,
"hopsUsed": 4,
"lastValidBlockHeight": 72986069,
"maxAmountIn": null,
"minOut": "2023788571",
"mode": "exactIn",
"platformFee": {
"amountToken": "5123386",
"bps": 25,
"percent": "0.25"
},
"route": {
"amountIn": "1000000",
"amountOut": "2049354266",
"parts": [
{
"amountIn": "1000000",
"amountOut": "2049354266",
"guard": {
"hardExcluded": false,
"maxPriceDeviationPct": 0,
"minPoolTvlXnt": 65884.29,
"penaltyBps": 0,
"thin": false,
"worstTradeReservePct": 0.00623893
},
"legs": [
{
"address": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR",
"amountIn": "1000000",
"amountOut": "2049354266",
"feePpm": 2800,
"inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
"outMint": "So11111111111111111111111111111111111111112",
"priceImpactPct": 0.00623892,
"venue": "xdex"
}
],
"priceImpactPct": 0.00623892,
"requiresGuard": false
}
],
"priceImpactPct": 0.00623892,
"split": false
},
"routerVersion": "v2",
"safety": {
"level": "safe",
"reasons": []
},
"simulation": {
"unitsConsumed": 94432
},
"slippageBps": 100,
"slippageDynamic": false,
"splitApplied": false,
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAA…base64 unsigned v0 transaction…",
"txSize": 498,
"usedAlt": true,
"usedRouter": true
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"acknowledgeHighImpact": {
"type": "boolean"
},
"amountIn": {
"description": "raw base units (exactIn)",
"type": "string"
},
"amountOut": {
"description": "raw base units (exactOut)",
"type": "string"
},
"inputMint": {
"description": "base58 X1 mint address",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
"type": "string"
},
"keepWrappedOutput": {
"description": "keep WXNT instead of auto-unwrapping",
"type": "boolean"
},
"maxHops": {
"description": "1-6 (on-chain router cap), default 4",
"type": "number"
},
"mode": {
"description": "default exactIn",
"enum": [
"exactIn",
"exactOut"
],
"type": "string"
},
"outputMint": {
"description": "base58 X1 mint address",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
"type": "string"
},
"payer": {
"description": "base58 fee payer / signer (must be a funded X1 account — the build is simulated)",
"type": "string"
},
"priorityFeeLamports": {
"description": "optional total priority-fee budget in lamports, non-negative integer (string or number); clamped to 1000000000",
"type": [
"string",
"number"
]
},
"priorityFeeMicroLamports": {
"description": "optional per-compute-unit priority fee, non-negative integer (string or number); clamped to 714285714",
"type": [
"string",
"number"
]
},
"slippageBps": {
"description": "explicit slippage in bps (clamped); omitted = dynamic",
"type": "number"
},
"validUntilSlot": {
"description": "quote expiry slot from /api/quote",
"type": "number"
}
},
"required": [
"inputMint",
"outputMint",
"payer"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://app.fortiblox.com/api/tx/build" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://app.fortiblox.com/api/tx/build");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://app.fortiblox.com/api/tx/build")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7853.json, and this resource appears in /discovery/resources and /discovery/search.