🟣Get /quote

path

/trade/quote

params

Name

type

need

Description

fromToken

string

toToken

string

amount

wei

fromChainId

string

toChainId

string

fromAddress

string

The address that calls the butter contract

feeType

string

pay fees with: NativeToken: 0; fromToken: 1; default: 0

slippage

string

min: 0; max: 0.5;

receiverAddress

string

default: fromAddress

result

//the result is the same as the result of get routes,but has no tx and gasInfo
type Response = {
    errno: number,
    message: string,
    data: {
        items: Route[],
    }
}

Last updated