solana_getswapsbypairaddress
Retrieve swap transactions for a Solana token pair, including buys, sells, and liquidity changes, to analyze trading activity and liquidity flows.
Instructions
Get all swap related transactions (buy, sell, add liquidity & remove liquidity) for a specific pair address.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network": "<network>",
"pairAddress": "<pairAddress>"
},
"name": "solana_getswapsbypairaddress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | The network to query | |
| pairAddress | Yes | The address of the pair to query | |
| limit | No | The limit per page | |
| cursor | No | The cursor to the next page | |
| order | No | The order of items | DESC |
| fromDate | No | The starting date (format in seconds or datestring accepted by momentjs) | |
| toDate | No | The ending date (format in seconds or datestring accepted by momentjs) | |
| transactionTypes | No | Transaction types to fetch. Possible values: 'buy', 'sell', 'addLiquidity' or 'removeLiquidity' separated by comma | buy,sell,addLiquidity,removeLiquidity |