curl --request POST \
--url https://de.raze.sh/v3/sol/buy \
--header 'Content-Type: application/json' \
--data '
{
"walletAddresses": [
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
],
"tokenAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"solAmount": 0.1
}
'{
"success": true,
"transactions": [
"4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWJ...",
"5mYUDkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWJ..."
]
}Build buy transactions for one or more wallets. Auth optional — API key users pay tip only, public users pay tip + 0.001 SOL flat fee.
Quote resolution order:
quoteResponse (pre-fetched) — used directly, no server fetchinputMint provided — fresh quote fetch for non-SOL inputcurl --request POST \
--url https://de.raze.sh/v3/sol/buy \
--header 'Content-Type: application/json' \
--data '
{
"walletAddresses": [
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
],
"tokenAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"solAmount": 0.1
}
'{
"success": true,
"transactions": [
"4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWJ...",
"5mYUDkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWJ..."
]
}1[
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
]"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
Uniform SOL amount per wallet. Required if amounts not provided (SOL input only).
0.1
Per-wallet SOL amounts. Required if solAmount not provided (SOL input only).
[0.05, 0.15]Input token mint. Omit for native SOL input. Use for non-SOL → token swaps.
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Raw input amount in token base units. Required when inputMint is provided.
1000000
Pre-fetched quote from GET /v3/sol/quote/{mint}. When provided, skips server-side quote fetch.
0 <= x <= 100009990
Priority fee per transaction in lamports
100000
Tip in lamports (min 1000000). API key users — tip only. Public — tip + 0.001 SOL flat fee.
x >= 10000001000000
base58, base64