ref_finance_get_swap_estimate
Calculate accurate swap estimates on the NEAR blockchain using Ref Finance, specifying input/output tokens, amount, and pool details. Optimize token exchanges with smart routing or specific pool IDs.
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 |