🟣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