Skip to main content
Glama

ref_finance_get_swap_estimate

Calculate token swap estimates on Ref Finance using input and output tokens, amounts, and preferred pools or smart routing for optimal rates.

Instructions

Get a swap estimate from the Ref Finance exchange contract based on two tokens and a pool id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesThe amount of the input tokens to swap
estimateTypeNoThe type of estimate to get. Defaults to the ref finance smart router to find the best price over all available pools
networkIdNomainnet
tokenInYes
tokenOutYes

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/nearai/near-mcp'

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