GET /tx/compute/swap-base-in
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/raydium/tx/compute/swap-base-inCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeRead-only exact-input Solana swap route quote with output amount, price impact and route plan.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
inputMint | query | str | required | Input token mint address. example: So11111111111111111111111111111111111111112 |
outputMint | query | str | required | Output token mint address. example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
amount | query | str | required | Exact input amount in raw base units (lamports). example: 100000000 |
slippageBps | query | int | required | Maximum slippage tolerance in basis points. default: 50example: 50 |
txVersion | query | str | required | Transaction format version (V0 or LEGACY). default: V0example: V0 |
Response
type: object
pagination: none
sample: {
"id": "str",
"success": "bool",
"version": "str",
"data": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/raydium/tx/compute/swap-base-in?inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=100000000&slippageBps=50&txVersion=V0"