Moralis MCP Server

Official
by MoralisWeb3

getPairAddress

Retrieve pair address data for token combinations on supported exchanges like Uniswap, Sushiswap, and Pancakeswap using token addresses and optional block or date parameters.

Instructions

Fetch the pair data of the provided token0+token1 combination. The token0 and token1 options are interchangable (ie. there is no different outcome in "token0=WETH and token1=USDT" or "token0=USDT and token1=WETH")

Input Schema

NameRequiredDescriptionDefault
exchangeNoThe factory name or address of the token exchange
to_blockNoThe block number to get the reserves from
to_dateNoGet the reserves up to this date (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.
token0_addressNoThe token0 address
token1_addressNoThe token1 address

Input Schema (JSON Schema)

{ "properties": { "exchange": { "description": "The factory name or address of the token exchange", "enum": [ "uniswapv2", "uniswapv3", "sushiswapv2", "pancakeswapv2", "pancakeswapv1", "quickswap" ], "type": "string" }, "to_block": { "description": "The block number to get the reserves from", "type": "string" }, "to_date": { "description": "Get the reserves up to this date (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" }, "token0_address": { "description": "The token0 address", "type": "string" }, "token1_address": { "description": "The token1 address", "type": "string" } }, "type": "object" }

You must be authenticated.

Other Tools from Moralis MCP Server

Related Tools

ID: paxjr6tzn8