SVM Endpoints
Complete API reference for Solana (SVM).
Supported Chains
| Chain | Identifier | Native Token |
|---|---|---|
| Solana | sol | SOL |
Supported DEXes
The API automatically routes through the best available DEX:
| DEX | Type | Description |
|---|---|---|
| RaydiumV4 | AMM | Classic Raydium pools |
| RaydiumCLMM | CLMM | Concentrated liquidity |
| RaydiumCPMM | CPMM | Constant product |
| RaydiumLaunchLab | Launchpad | New token launches |
| PumpFun | Bonding Curve | Meme token launches |
| PumpSwap | AMM | PumpFun graduated tokens |
| MeteoraDLMM | DLMM | Dynamic liquidity |
| Meteora DYN | AMM | Dynamic fee AMM pools |
| Meteora DYN2 | AMM | Enhanced dynamic pools |
| Meteora Dynamic Bonding Curve (DBC) | Bonding Curve | Meteora token launches |
| Whirlpool | CLMM | Orca concentrated liquidity |
Quotes
Get price quotes for token swaps without executing transactions.
Get Buy Quote
Get a price quote for buying tokens with SOL.
Endpoint: /svm/buy/quote
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
swapMode | string | Yes | ExactIn or ExactOut |
amountIn | string | Conditional | Amount of SOL in lamports. Required for ExactIn |
amountOut | string | Conditional | Amount of tokens. Required for ExactOut |
wallet | string | Yes | Wallet public key |
Example:
socket.emit("/svm/buy/quote", {
chain: "sol",
token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263", // BONK
swapMode: "ExactIn",
amountIn: "1000000000", // 1 SOL in lamports
wallet: "YourSolanaWalletPublicKey",
});Response:
{
"success": true,
"result": {
"chain": "sol",
"isBuy": true,
"token": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"swapMode": "ExactIn",
"dex": "RaydiumV4",
"price": 0.00000156,
"priceImpact": 0.0008,
"amountIn": "1000000000",
"expectedAmountOut": "641025641025641"
}
}Get Sell Quote
Get a price quote for selling tokens for SOL.
Endpoint: /svm/sell/quote
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
swapMode | string | Yes | ExactIn or ExactOut |
amountIn | string | Conditional | Amount of tokens. Required for ExactIn |
wallet | string | Yes | Wallet public key |
Transactions
Build unsigned transactions for token swaps.
Get Buy Transaction
Build an unsigned transaction for buying tokens.
Endpoint: /svm/buy/transaction
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
swapMode | string | Yes | ExactIn or ExactOut |
amountIn | string | Yes | Amount of SOL in lamports |
wallet | string | Yes | Wallet public key |
slippageBps | number | No | Slippage tolerance (default: 100 = 1%) |
feeBps | number | No | Fee in basis points (0-175) |
feeRecipient | string | No | Wallet to receive fees |
prioFees | object | No | Priority fees (see below) |
sendRoute | string | No | Public, Private, or Both |
nonceAccount | string | No | Nonce account for transaction exclusivity |
Example:
socket.emit("/svm/buy/transaction", {
chain: "sol",
token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
swapMode: "ExactIn",
amountIn: "1000000000",
wallet: "YourSolanaWalletPublicKey",
slippageBps: 100,
prioFees: { microLamports: 50000 },
});Get Sell Transaction
Endpoint: /svm/sell/transaction
Same parameters as buy transaction.
Transfers
Build transactions for SOL and token transfers.
SOL Transfer
Transfer SOL to another address.
Endpoint: /svm/transfer/transaction
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
recipient | string | Yes | Recipient public key |
amount | string | Yes | Amount in lamports |
wallet | string | Yes | Sender public key |
prioFees | object | No | Priority fees |
Token Transfer
Transfer SPL tokens.
Endpoint: /svm/transfer/token/transaction
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
recipient | string | Yes | Recipient public key |
amount | string | Yes | Amount in token decimals |
wallet | string | Yes | Sender public key |
ensureRecipientAssociatedTokenAccount | boolean | No | Create ATA if needed (default: true) |
Multi-Transfer
Send SOL to multiple recipients in one transaction.
Endpoint: /svm/transfer/multi/transaction
socket.emit("/svm/transfer/multi/transaction", {
chain: "sol",
wallet: "YourSolanaWalletPublicKey",
recipients: [
{ address: "Recipient1PublicKey", amount: "100000000" },
{ address: "Recipient2PublicKey", amount: "200000000" },
],
});Wallet
Query wallet balances.
Get SOL Balance
Endpoint: /svm/wallet/balance
socket.emit("/svm/wallet/balance", {
chain: "sol",
wallet: "YourSolanaWalletPublicKey",
});Get Token Balance
Endpoint: /svm/wallet/balance/token
socket.emit("/svm/wallet/balance/token", {
chain: "sol",
token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
wallet: "YourSolanaWalletPublicKey",
});Token Information
Get Token Metadata
Endpoint: /svm/token/meta
Returns name, symbol, decimals, and supply.
Get Token Report
Endpoint: /svm/token/report
Returns comprehensive token analysis including liquidity and market data.
Priority Fees
Solana transactions can include priority fees to increase the chance of inclusion during network congestion.
socket.emit("/svm/buy/transaction", {
// ... other params
prioFees: {
microLamports: 50000, // Priority fee per compute unit
},
});Recommended values:
| Network State | microLamports |
|---|---|
| Low congestion | 1,000 - 10,000 |
| Normal | 10,000 - 50,000 |
| High congestion | 50,000 - 500,000 |
Send Transaction
Broadcast signed transactions to Solana.
Endpoint: /svm/send-transaction
⚠️ Warning: This endpoint sends real transactions to the blockchain.
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
signedTransactions | string[] | Yes | Array of base64-encoded signed transactions |
simulateBeforeSend | boolean | No | Simulate before sending (default: true) |
Next Steps
- EVM Endpoints — Explore Ethereum, Base, and BSC endpoints
- Error Handling — Learn about error codes
- Playground — Test endpoints interactively