Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json
walletAddresses
string[]
required
Minimum array length: 1
Example:
tokenAddress
string
required
Example:

"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"

percentage
number

Percentage of holdings to sell (0.01–100). Required if tokensAmount not provided.

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

100

tokensAmount

Fixed token amount(s). Single number applies to all wallets; array is per-wallet. Required if percentage not provided.

Example:

500000

outputMint
string

Output token mint. Omit for native SOL output. Use for token → non-SOL swaps.

Example:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

slippageBps
integer
default:500

Slippage tolerance in basis points. Defaults to 500 (5%) when omitted.

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

500

transactionsFeeLamports
number

Priority fee per transaction in lamports

Example:

100000

tipWallet
string

Tip recipient wallet. Omitted ⇒ no tip transfer.

tipLamports
number

Tip amount in lamports. Omitted ⇒ no tip transfer.

Example:

1000000

feeWallet
string

Platform-fee recipient wallet — any wallet you choose. Omitted ⇒ no percentage fee.

feeBps
number

Platform fee in bps, capped on-chain at 1000 (10%). Omitted ⇒ no percentage fee. Charged only on routes built through the Raze CPI router.

Example:

50

feeOnInput
boolean

Take on-chain CPI fee from input (true) or output (false). Auth only.

jitoDontFront
boolean

Append JITO_DONT_FRONT marker. Only for single non-bundled sells. Default false.

swapMode
enum<string>

exactIn (default) or exactOut (receive exact solAmount of output mint)

Available options:
exactIn,
exactOut
solAmount
number

exactOut sell — exact amount of output mint to receive (human units)

maxHops
integer
Required range: 1 <= x <= 3
includeDex
excludeDex
recipient
string

Output recipient wallet. Distinct from payer ⇒ proceeds directed to recipient (SOL delivered as native). CPI-router only.

encoding
enum<string>
default:base64
Available options:
base58,
base64

Response

Transactions generated

success
boolean
required
Example:

true

transactions
string[]
required
amountsOut
(integer | null)[]

Per-tx built output amount (raw), index-aligned with transactions; null where no route was found for that wallet. Same semantics as on /swap/sol/buy.