evm_getswapsbytokenaddress
Retrieve all buy and sell swap transactions for a specific ERC20 token across multiple blockchains. Customize results by chain, block range, date, transaction type, and pagination for detailed analysis.
Instructions
Get all swap transactions (buy/sell) for a specific ERC20 token.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | The token address to get transaction 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 'from_block' or 'from_date' * If 'from_date' and 'from_block' are provided, 'from_block' 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 'from_block' or 'from_date' * If 'from_date' and 'from_block' are provided, 'from_block' 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 'to_block' or 'to_date' * If 'to_date' and 'to_block' are provided, 'to_block' will be used. | |
transactionTypes | No | Array of transaction types. Allowed values are 'buy', 'sell'. |