Skip to main content
POST
Get CPI account list for calling route from another program

Headers

Authorization
string

Optional API key: Bearer vulcx_.... Anonymous calls are allowed but capped at a small per-IP rate limit — see Rate limits.

Example:

"Bearer vulcx_..."

Body

application/json

Parameters for building the route instruction as a CPI target. Like InstructionsRequest, but the signer is a calling program's PDA (the on-chain authority that will invoke_signed into route) rather than a wallet.

authority
string
required

The calling program's PDA authority — owns the token accounts and signs the swap via invoke_signed inside the integrating program.

Example:

"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP"

inputMint
string
required
Example:

"So11111111111111111111111111111111111111112"

outputMint
string
required
Example:

"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"

amount
string
required

Amount in the smallest token units.

Example:

"1000000000"

swapMode
enum<string>
required
Available options:
ExactIn,
ExactOut
Example:

"ExactIn"

slippageBps
integer
default:50
Example:

50

allowedIntermediateMints
string[]

Route corridor: multi-hop routes may only pass through these mints, closing the requiredTokenAccounts set over ATAs you pre-provisioned. Input and output mints are implicitly allowed. Empty/omitted = unrestricted.

Maximum array length: 16
Example:
maxHops
integer

Cap on route length (1 = direct pools only). 0/omitted = server default.

Example:

2

excludeDexes
enum<string>[]

DEX types to exclude from routing. Excluding "moonit" also lifts the authority-writable requirement on the CPI.

Available options:
vortex,
fluxbeam,
moonit
Example:
referrer
string

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.

Example:

"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP"

integratorFeeBps
integer

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.

Required range: 0 <= x <= 100
Example:

20

Response

Route CPI account list built successfully.

success
boolean
Example:

true

data
object

The route instruction shaped for a CPI caller. Forward routeInstruction.accounts into your program's route CPI and sign with the PDA seeds. requiredTokenAccounts are the ATAs the authority PDA must own and fund before the CPI runs — this builder emits no ATA-create or wrap/unwrap instructions.

Last modified on August 31, 2026