Get Swaps
curl --request POST \
--url https://refract.prismapi.io/v1/solana/dex/swaps/get-swaps \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"wallet": "suqh5sHtr8HyJ7q8scBimULPkPpA557prMG47xCHQfK",
"limit": 20
}
'{
"count": 123,
"cursor": "<string>",
"data": [
{
"protocol": "<string>",
"wallet": "<string>",
"token_in": "<string>",
"token_out": "<string>",
"token_symbol_in": "<string>",
"token_symbol_out": "<string>",
"token_amount_in": 123,
"token_amount_out": 123,
"token_price_in": 123,
"token_price_out": 123,
"pre_token_balance_in": 123,
"pre_token_balance_out": 123,
"post_token_balance_in": 123,
"post_token_balance_out": 123,
"usd_amount_in": 123,
"usd_amount_out": 123,
"block_slot": 123,
"block_time": 123,
"tx_hash": "<string>",
"swap_index": 123
}
]
}Swaps
Get Swaps
Returns swaps for a wallet, token or both.
POST
/
v1
/
solana
/
dex
/
swaps
/
get-swaps
Get Swaps
curl --request POST \
--url https://refract.prismapi.io/v1/solana/dex/swaps/get-swaps \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"wallet": "suqh5sHtr8HyJ7q8scBimULPkPpA557prMG47xCHQfK",
"limit": 20
}
'{
"count": 123,
"cursor": "<string>",
"data": [
{
"protocol": "<string>",
"wallet": "<string>",
"token_in": "<string>",
"token_out": "<string>",
"token_symbol_in": "<string>",
"token_symbol_out": "<string>",
"token_amount_in": 123,
"token_amount_out": 123,
"token_price_in": 123,
"token_price_out": 123,
"pre_token_balance_in": 123,
"pre_token_balance_out": 123,
"post_token_balance_in": 123,
"post_token_balance_out": 123,
"usd_amount_in": 123,
"usd_amount_out": 123,
"block_slot": 123,
"block_time": 123,
"tx_hash": "<string>",
"swap_index": 123
}
]
}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.
Authorizations
Your Prism API key. You can get one for free in the Prism Dashboard.
Body
application/json
Wallet address to filter swaps by. When combined with token, returns only swaps for that wallet on that token.
Token address to filter swaps by. When combined with wallet, returns only swaps for that wallet on that token.
Maximum number of results to return in a single page.
Required range:
1 <= x <= 100Opaque cursor returned by a previous response. Pass it to fetch the next page of results.
Was this page helpful?
⌘I