evm_getswapsbywalletaddress
Retrieve all buy/sell swap transactions for a specific wallet address. Filter by token address, block range, or date for precise results.
Instructions
List all swap transactions (buy/sell) for a specific wallet. Optionally filter by tokenAddress
for specific token swaps.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | The wallet 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 '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. | |
tokenAddress | No | The token address to get transaction for (optional) | |
transactionTypes | No | Array of transaction types. Allowed values are 'buy', 'sell'. |