Skip to main content
POST
/
v2
/
sol
/
buy
curl --request POST \
  --url https://de.raze.sh/v2/sol/buy \
  --header 'Content-Type: application/json' \
  --data '
{
  "walletAddresses": [
    "62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
  ],
  "tokenAddress": "Fyx78ew4wRY26gPj5CkTyuZ4kvW7CkPff5Jm2vNspump",
  "solAmount": 0.1
}
'
{
  "success": true,
  "transactions": [
    "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArvc8yh6I6K7Q8Y"
  ]
}

Body

application/json

Request to generate buy transactions

walletAddresses
string[]
required

Array of wallet addresses to buy tokens for

Minimum array length: 1
Example:
[
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
]
tokenAddress
string
required

Token mint address to buy

Example:

"Fyx78ew4wRY26gPj5CkTyuZ4kvW7CkPff5Jm2vNspump"

solAmount
number

Fixed SOL amount to spend (applied to all wallets). Either solAmount or amounts required.

Required range: x >= 0
Example:

0.1

amounts
number[]

Array of SOL amounts, one per wallet. Either solAmount or amounts required.

Minimum array length: 1
Example:
[0.1, 0.2]
jitoTipLamports
integer
default:5000000

Jito tip in lamports (only used for bundles). Default 5000000 (0.005 SOL).

Required range: x >= 0
Example:

5000000

slippageBps
integer
default:9990

Slippage tolerance in basis points. Default 9990 (99.9%).

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

9990

transactionsFeeLamports
number

Additional transaction fee in lamports (optional)

Required range: x >= 0
Example:

1000000

Response

Success - Transactions generated

Response with generated buy transactions

success
boolean
required
Example:

true

transactions
string[]
required

Array of base58-encoded transactions ready to be signed

Example:
[
"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArvc8yh6I6K7Q8Y"
]