SVM Endpoints

Complete API reference for Solana (SVM).


Supported Chains

ChainIdentifierNative Token
SolanasolSOL

Supported DEXes

The API automatically routes through the best available DEX:

DEXTypeDescription
RaydiumV4AMMClassic Raydium pools
RaydiumCLMMCLMMConcentrated liquidity
RaydiumCPMMCPMMConstant product
RaydiumLaunchLabLaunchpadNew token launches
PumpFunBonding CurveMeme token launches
PumpSwapAMMPumpFun graduated tokens
MeteoraDLMMDLMMDynamic liquidity
Meteora DYNAMMDynamic fee AMM pools
Meteora DYN2AMMEnhanced dynamic pools
Meteora Dynamic Bonding Curve (DBC)Bonding CurveMeteora token launches
WhirlpoolCLMMOrca 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

ParameterTypeRequiredDescription
chainstringYesAlways sol
tokenstringYesToken mint address
swapModestringYesExactIn or ExactOut
amountInstringConditionalAmount of SOL in lamports. Required for ExactIn
amountOutstringConditionalAmount of tokens. Required for ExactOut
walletstringYesWallet public key

Example:

typescript
socket.emit("/svm/buy/quote", {
  chain: "sol",
  token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263", // BONK
  swapMode: "ExactIn",
  amountIn: "1000000000", // 1 SOL in lamports
  wallet: "YourSolanaWalletPublicKey",
});

Response:

json
{
  "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

ParameterTypeRequiredDescription
chainstringYesAlways sol
tokenstringYesToken mint address
swapModestringYesExactIn or ExactOut
amountInstringConditionalAmount of tokens. Required for ExactIn
walletstringYesWallet public key

Transactions

Build unsigned transactions for token swaps.

Get Buy Transaction

Build an unsigned transaction for buying tokens.

Endpoint: /svm/buy/transaction

ParameterTypeRequiredDescription
chainstringYesAlways sol
tokenstringYesToken mint address
swapModestringYesExactIn or ExactOut
amountInstringYesAmount of SOL in lamports
walletstringYesWallet public key
slippageBpsnumberNoSlippage tolerance (default: 100 = 1%)
feeBpsnumberNoFee in basis points (0-175)
feeRecipientstringNoWallet to receive fees
prioFeesobjectNoPriority fees (see below)
sendRoutestringNoPublic, Private, or Both
nonceAccountstringNoNonce account for transaction exclusivity

Example:

typescript
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

ParameterTypeRequiredDescription
chainstringYesAlways sol
recipientstringYesRecipient public key
amountstringYesAmount in lamports
walletstringYesSender public key
prioFeesobjectNoPriority fees

Token Transfer

Transfer SPL tokens.

Endpoint: /svm/transfer/token/transaction

ParameterTypeRequiredDescription
chainstringYesAlways sol
tokenstringYesToken mint address
recipientstringYesRecipient public key
amountstringYesAmount in token decimals
walletstringYesSender public key
ensureRecipientAssociatedTokenAccountbooleanNoCreate ATA if needed (default: true)

Multi-Transfer

Send SOL to multiple recipients in one transaction.

Endpoint: /svm/transfer/multi/transaction

typescript
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

typescript
socket.emit("/svm/wallet/balance", {
  chain: "sol",
  wallet: "YourSolanaWalletPublicKey",
});

Get Token Balance

Endpoint: /svm/wallet/balance/token

typescript
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.

typescript
socket.emit("/svm/buy/transaction", {
  // ... other params
  prioFees: {
    microLamports: 50000, // Priority fee per compute unit
  },
});

Recommended values:

Network StatemicroLamports
Low congestion1,000 - 10,000
Normal10,000 - 50,000
High congestion50,000 - 500,000

Send Transaction

Broadcast signed transactions to Solana.

Endpoint: /svm/send-transaction

⚠️ Warning: This endpoint sends real transactions to the blockchain.

ParameterTypeRequiredDescription
chainstringYesAlways sol
signedTransactionsstring[]YesArray of base64-encoded signed transactions
simulateBeforeSendbooleanNoSimulate before sending (default: true)

Next Steps