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
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | The amount of the input tokens to swap | |
estimateType | No | The type of estimate to get. Defaults to the ref finance smart router to find the best price over all available pools | |
networkId | No | mainnet | |
tokenIn | Yes | ||
tokenOut | Yes |