solana_getswapsbytokenaddress
Retrieve swap transactions for a specific token address on Solana to analyze trading activity, including buy and sell operations with date filtering and pagination options.
Instructions
Get all swap related transactions (buy, sell) for a specific token 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>",
"address": "<address>"
},
"name": "solana_getswapsbytokenaddress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | The network to query | |
| address | Yes | The address to query | |
| limit | No | The limit per page | |
| cursor | No | The cursor to the next page | |
| 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) | |
| order | No | The order of the results, in ascending (ASC) or descending (DESC). | DESC |
| transactionTypes | No | Transaction types to fetch. Possible values: 'buy','sell' or both separated by comma | buy,sell |