Skip to main content
Glama

Moralis MCP Server

Official
by MoralisWeb3

solana_getswapsbypairaddress

Retrieve all swap transactions (buy, sell, add liquidity, remove liquidity) for a specific token pair address on Solana networks, with customizable filters and pagination support.

Instructions

Get all swap related transactions (buy, sell, add liquidity & remove liquidity) for a specific pair address.

Input Schema

NameRequiredDescriptionDefault
cursorNoThe cursor to the next page
fromDateNoThe starting date (format in seconds or datestring accepted by momentjs)
limitNoThe limit per page
networkYesThe network to query
orderNoThe order of itemsDESC
pairAddressYesThe address of the pair to query
toDateNoThe ending date (format in seconds or datestring accepted by momentjs)
transactionTypesNoTransaction types to fetch. Possible values: 'buy', 'sell', 'addLiquidity' or 'removeLiquidity' separated by commabuy,sell,addLiquidity,removeLiquidity

Input Schema (JSON Schema)

{ "properties": { "cursor": { "description": "The cursor to the next page", "type": "string" }, "fromDate": { "description": "The starting date (format in seconds or datestring accepted by momentjs)", "type": "string" }, "limit": { "default": 100, "description": "The limit per page", "maximum": 100, "minimum": 1, "type": "number" }, "network": { "description": "The network to query", "enum": [ "mainnet", "devnet" ], "type": "string" }, "order": { "default": "DESC", "description": "The order of items", "enum": [ "ASC", "DESC" ], "type": "string" }, "pairAddress": { "description": "The address of the pair to query", "type": "string" }, "toDate": { "description": "The ending date (format in seconds or datestring accepted by momentjs)", "type": "string" }, "transactionTypes": { "default": "buy,sell,addLiquidity,removeLiquidity", "description": "Transaction types to fetch. Possible values: 'buy', 'sell', 'addLiquidity' or 'removeLiquidity' separated by comma", "type": "string" } }, "required": [ "network", "pairAddress" ], "type": "object" }

Other Tools from Moralis MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/MoralisWeb3/moralis-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server