Moralis MCP Server

Official
by MoralisWeb3

getSwapsByTokenAddress

Retrieve all swap transactions (buy/sell) for a specific token address by integrating with the Moralis MCP Server API. Filter results by date, block range, or transaction type for precise data analysis.

Instructions

Get all swap related transactions (buy, sell)

Input Schema

NameRequiredDescriptionDefault
addressNoThe token address to get transaction 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.
transactionTypesNoArray of transaction types. Allowed values are 'buy', 'sell'.

Input Schema (JSON Schema)

{ "properties": { "address": { "description": "The token address to get transaction 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" }, "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