Skip to content

FindBestRouteParams

SIP Protocol API Reference v0.9.0


SIP Protocol API Reference / FindBestRouteParams

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7843

Route finding parameters

from: object

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7845

Source chain and token

chain: ChainId

token: string


to: object

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7850

Destination chain and token

chain: ChainId

token: string


amount: bigint

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7855

Amount to swap (in smallest units)


privacyLevel: PrivacyLevel

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7857

Privacy level


optional preferSpeed?: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7859

Prefer speed over cost (default: false)


optional preferLowFees?: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7861

Prefer low fees over speed (default: true)


optional recipientMetaAddress?: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7863

Additional quote parameters


optional senderAddress?: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7864


optional slippageTolerance?: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7865


optional deadline?: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7866


optional skipCache?: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:7868

Skip cache and fetch fresh quotes (default: false)