Moralis MCP Server

Official
by MoralisWeb3

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

NameRequiredDescriptionDefault
addressNoThe wallet address token-transactions are to be retrieved for.
cursorNoThe cursor returned in the previous response (used for getting the next page).
fromBlockNoThe 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.
fromDateNoThe 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.
limitNoThe desired page size of the result.
toBlockNoThe block number to get the token transactions from
toDateNoThe 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.
tokenAddressNoThe token address to get transaction for (optional)
transactionTypesNoArray of transaction types. Allowed values are 'buy', 'sell'.

Input Schema (JSON Schema)

{ "properties": { "address": { "description": "The wallet address token-transactions are to be retrieved for.", "type": "string" }, "cursor": { "description": "The cursor returned in the previous response (used for getting the next page).", "type": "string" }, "fromBlock": { "description": "The minimum block number from which to get the token transactions\n* Provide the param 'from_block' or 'from_date'\n* If 'from_date' and 'from_block' are provided, 'from_block' will be used.\n", "type": "integer" }, "fromDate": { "description": "The start date from which to get the token transactions (format in seconds or datestring accepted by momentjs)\n* Provide the param 'from_block' or 'from_date'\n* If 'from_date' and 'from_block' are provided, 'from_block' will be used.\n", "type": "string" }, "limit": { "description": "The desired page size of the result.", "type": "integer" }, "toBlock": { "description": "The block number to get the token transactions from", "type": "string" }, "toDate": { "description": "The end date from which to get the token transactions (format in seconds or datestring accepted by momentjs)\n* Provide the param 'to_block' or 'to_date'\n* If 'to_date' and 'to_block' are provided, 'to_block' will be used.\n", "type": "string" }, "tokenAddress": { "description": "The token address to get transaction for (optional)", "type": "string" }, "transactionTypes": { "description": "Array of transaction types. Allowed values are 'buy', 'sell'.", "type": "string" } }, "type": "object" }

You must be authenticated.

Other Tools from Moralis MCP Server

Related Tools

ID: paxjr6tzn8