Skip to main content
Glama

solana_getswapsbypairaddress

Retrieve swap transactions for a Solana token pair, including buys, sells, and liquidity changes, to analyze trading activity and liquidity flows.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkYesThe network to query
pairAddressYesThe address of the pair to query
limitNoThe limit per page
cursorNoThe cursor to the next page
orderNoThe order of itemsDESC
fromDateNoThe starting date (format in seconds or datestring accepted by momentjs)
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

Other Tools

Latest Blog Posts

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