The API is currently in development and is not yet available for production use. Please check back later.
{
"method": "subscribe",
"topic": "solana.dex.swap.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.swap.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "subscribe",
"topic": "solana.dex.swap.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.swap.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"topic": "solana.dex.swap.wallet",
"data": {
"swap_type": "token_quote",
"protocol": "orca-whirl",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token_in": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"token_out": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"token_symbol_in": "2Z",
"token_symbol_out": "USDC",
"token_amount_in": 256.4115815,
"token_amount_out": 35.323303,
"token_price_in": 0.13773953743547926,
"token_price_out": 0.99985023,
"pre_token_balance_in": 2247.98704231,
"pre_token_balance_out": 941487.708419,
"post_token_balance_in": 1991.57546081,
"post_token_balance_out": 941523.031722,
"usd_amount_in": 35.31801262890969,
"usd_amount_out": 35.323303,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"swap_index": 58
}
}{
"topic": "solana.dex.swap.token",
"data": {
"swap_type": "token_quote",
"protocol": "orca-whirl",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token_in": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"token_out": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"token_symbol_in": "2Z",
"token_symbol_out": "USDC",
"token_amount_in": 256.4115815,
"token_amount_out": 35.323303,
"token_price_in": 0.13773953743547926,
"token_price_out": 0.99985023,
"pre_token_balance_in": 2247.98704231,
"pre_token_balance_out": 941487.708419,
"post_token_balance_in": 1991.57546081,
"post_token_balance_out": 941523.031722,
"usd_amount_in": 35.31801262890969,
"usd_amount_out": 35.323303,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"swap_index": 58
}
}Subscribe to real-time wallet swaps.
Documentation Index
Fetch the complete documentation index at: https://docs.prismapi.io/llms.txt
Use this file to discover all available pages before exploring further.
topic field that you can use to filter.
Available Topics
solana.dex.profile.walletsolana.dex.profile.tokensolana.dex.profile.positionsolana.dex.swap.walletsolana.dex.swap.tokensolana.dex.trade.walletsolana.dex.trade.tokensolana.dex.priceparams object empty to subscribe to all entries.params object empty to unsubscribe from all entries.{
"method": "subscribe",
"topic": "solana.dex.swap.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.swap.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "subscribe",
"topic": "solana.dex.swap.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.swap.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"topic": "solana.dex.swap.wallet",
"data": {
"swap_type": "token_quote",
"protocol": "orca-whirl",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token_in": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"token_out": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"token_symbol_in": "2Z",
"token_symbol_out": "USDC",
"token_amount_in": 256.4115815,
"token_amount_out": 35.323303,
"token_price_in": 0.13773953743547926,
"token_price_out": 0.99985023,
"pre_token_balance_in": 2247.98704231,
"pre_token_balance_out": 941487.708419,
"post_token_balance_in": 1991.57546081,
"post_token_balance_out": 941523.031722,
"usd_amount_in": 35.31801262890969,
"usd_amount_out": 35.323303,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"swap_index": 58
}
}{
"topic": "solana.dex.swap.token",
"data": {
"swap_type": "token_quote",
"protocol": "orca-whirl",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token_in": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"token_out": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"token_symbol_in": "2Z",
"token_symbol_out": "USDC",
"token_amount_in": 256.4115815,
"token_amount_out": 35.323303,
"token_price_in": 0.13773953743547926,
"token_price_out": 0.99985023,
"pre_token_balance_in": 2247.98704231,
"pre_token_balance_out": 941487.708419,
"post_token_balance_in": 1991.57546081,
"post_token_balance_out": 941523.031722,
"usd_amount_in": 35.31801262890969,
"usd_amount_out": 35.323303,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"swap_index": 58
}
}Your Prism API key. You can get one for free in the Prism Dashboard.
Subscribe to swap updates for a list of wallets.
Unsubscribe from swap updates for a list of wallets.
Subscribe to swap updates for a list of tokens.
Unsubscribe from swap updates for a list of tokens.
Message containing the swap data for the subscribed wallets.
Message containing the swap data for the subscribed tokens.
Was this page helpful?