Skip to content
docs

SymbiosisProviderConfig

Defined in: protocol-swap2-symbiosis/src/provider.ts:74

optional apiKey?: string

Defined in: protocol-swap2-symbiosis/src/provider.ts:112

Optional: sent as X-Api-Key. Never put a key in an app bundle — point apiUrl at a proxy that adds it.


optional apiUrl?: string

Defined in: protocol-swap2-symbiosis/src/provider.ts:77

API base (default https://api.symbiosis.finance/crosschain) — e.g. the app’s own proxy.


optional boundSourceOnly?: boolean

Defined in: protocol-swap2-symbiosis/src/provider.ts:101

Refuse routes that swap on the source chain before bridging (default off). Such a swap is a call to an allow-listed router whose tokens, amount, receiver and minimum are checked, but whose liquidity is a third party’s; with this on, no third-party contract touches the sell token.


optional btcSource?: boolean

Defined in: protocol-swap2-symbiosis/src/provider.ts:95

Quote Bitcoin sources (default off). A Bitcoin source pays a deposit address the API names; nothing on the device can tell whose address it is.


optional enabled?: boolean

Defined in: protocol-swap2-symbiosis/src/provider.ts:75


optional fallbackReceiver?: string

Defined in: protocol-swap2-symbiosis/src/provider.ts:106

The user’s own EVM address, needed when neither side is an EVM chain (Tron ↔ TON): it receives the synthetic tokens on Symbiosis’ host chain if the last leg is reverted.


optional fetchImpl?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: protocol-swap2-symbiosis/src/provider.ts:116

Injectable for tests.

(input, init?): Promise<Response>

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | Request | URL

RequestInit

Promise<Response>


optional partnerAddress?: string

Defined in: protocol-swap2-symbiosis/src/provider.ts:108

Optional: a registered partner address that shares the protocol fee (the API’s partnerAddress).


optional partnerId?: string

Defined in: protocol-swap2-symbiosis/src/provider.ts:110

Optional: sent as X-Partner-Id.


optional quoteTtlMs?: number

Defined in: protocol-swap2-symbiosis/src/provider.ts:79

Local lifetime of a quote in ms (default 60 000, at most 300 000). Symbiosis asks to rebuild calldata often.


optional slippageBps?: number

Defined in: protocol-swap2-symbiosis/src/provider.ts:84

Slippage in bps when the caller names none. Default: suggestSlippage from swap2-core for the pair, the route’s price impact and its time to settle.


optional tronFeeLimitCap?: string | number | bigint

Defined in: protocol-swap2-symbiosis/src/provider.ts:114

The highest Tron fee_limit (sun) a response may ask for (default 300 TRX).


optional tronSource?: boolean

Defined in: protocol-swap2-symbiosis/src/provider.ts:90

Quote Tron sources (default off). The quote and its checked metaRoute call are complete, but the engine does not execute contract calls on Tron yet — an app signs it itself with symbiosisTronCall.