🟣Get /routes

path

/trade/routes

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

type Response = {
 Β  Β errno: number,
 Β  Β message: string,
 Β  Β data: {
 Β  Β  Β  Β items: Route[],
 Β   }
}

Last updated