getSwapsByWalletAddress
Retrieve all swap-related transactions (buy/sell) for a specific wallet address using token details, block range, and pagination parameters.
Instructions
Get all swap related transactions (buy, sell)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | No | The wallet address token-transactions are to be retrieved for. | |
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. | |
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'. |