Swap Websocket RPC Method - Swap API
Please note that this method is only available for paid subscribers of Swap API.
To establish a WebSocket connection, you need to simply append '/ws' to your endpoint URL. For parameters, you can include them as URL arguments referred to as "params".
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode add-ons into your applications. For more information on how to use Quicknode add-ons with Solana Kit, check out these guides: How to Use Quicknode Add-ons using Solana Kit (Part 1) and How to Use Quicknode Add-ons using Solana Kit (Part 2)
매개변수
jsonrpc
문자열
필수
로딩 중...
method
문자열
필수
로딩 중...
id
정수
필수
로딩 중...
매개변수
객체
필수
로딩 중...
userPublicKey
문자열
필수
로딩 중...
지불자
문자열
로딩 중...
wrapAndUnwrapSol
부울
로딩 중...
useSharedAccounts
부울
로딩 중...
feeAccount
문자열
로딩 중...
trackingAccount
문자열
로딩 중...
computeUnitPriceMicroLamports
정수
로딩 중...
prioritizationFeeLamports
객체
로딩 중...
priorityLevelWithMaxLamports
객체
로딩 중...
priorityLevel
문자열
로딩 중...
maxLamports
정수
로딩 중...
global
부울
로딩 중...
jitoTipLamports
정수
로딩 중...
jitoTipLamportsWithPayer
객체
로딩 중...
lamports
정수
필수
로딩 중...
지불자
문자열
필수
로딩 중...
asLegacyTransaction
부울
로딩 중...
useTokenLedger
부울
로딩 중...
destinationTokenAccount
문자열
로딩 중...
nativeDestinationAccount
문자열
로딩 중...
dynamicComputeUnitLimit
부울
로딩 중...
skipUserAccountsRpcCalls
부울
로딩 중...
dynamicSlippage
부울
로딩 중...
blockhashSlotsToExpiry
정수
로딩 중...
quoteResponse
객체
필수
로딩 중...
inputMint
문자열
필수
로딩 중...
inAmount
문자열
필수
로딩 중...
outputMint
문자열
필수
로딩 중...
outAmount
문자열
필수
로딩 중...
otherAmountThreshold
문자열
필수
로딩 중...
swapMode
문자열
필수
로딩 중...
slippageBps
정수
필수
로딩 중...
platformFee
객체
로딩 중...
금액
문자열
로딩 중...
feeBps
정수
로딩 중...
priceImpactPct
문자열
필수
로딩 중...
routePlan
배열
필수
로딩 중...
swapInfo
객체
필수
로딩 중...
ammKey
문자열
필수
로딩 중...
label
문자열
로딩 중...
inputMint
문자열
필수
로딩 중...
outputMint
문자열
필수
로딩 중...
inAmount
문자열
필수
로딩 중...
outAmount
문자열
필수
로딩 중...
feeAmount
문자열
필수
로딩 중...
feeMint
문자열
필수
로딩 중...
percent
정수
필수
로딩 중...
bps
정수
로딩 중...
instructionVersion
문자열
로딩 중...
contextSlot
정수
로딩 중...
timeTaken
정수
로딩 중...
반품
jsonrpc
문자열
로딩 중...
id
정수
로딩 중...
결과
객체
로딩 중...
swapTransaction
문자열
로딩 중...
lastValidBlockHeight
정수
로딩 중...
prioritizationFeeLamports
객체
로딩 중...
요청