🟣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