evm_getswapsbypairaddress
Retrieve swap transactions (buy, sell, add/remove liquidity) for a specific token pair by providing the pair address. Filter by chain, block range, date, transaction type, and paginate results for detailed analysis.
Instructions
Fetch swap transactions (buy, sell, add/remove liquidity) for a specific token pair.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | The pair address token-transactions are to be retrieved for. | |
chain | No | The chain to query | eth |
cursor | No | The cursor returned in the previous response (used for getting the next page). | |
fromBlock | No | The minimum block number from which to get the token transactions * Provide the param 'fromBlock' or 'fromDate' * If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used. | |
fromDate | No | The start date from which to get the token transactions (format in seconds or datestring accepted by momentjs) * Provide the param 'fromBlock' or 'fromDate' * If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used. | |
limit | No | The desired page size of the result. | |
order | No | The order of the result, in ascending (ASC) or descending (DESC) | DESC |
toBlock | No | The block number to get the token transactions from | |
toDate | No | The end date from which to get the token transactions (format in seconds or datestring accepted by momentjs) * Provide the param 'toBlock' or 'toDate' * If 'toDate' and 'toBlock' are provided, 'toBlock' will be used. | |
transactionTypes | No | Array of transaction types. Allowed values are 'buy', 'sell', 'addLiquidity', 'removeLiquidity'. |