SymbiosisProviderConfig
Defined in: protocol-swap2-symbiosis/src/provider.ts:74
Extended by
Section titled “Extended by”Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?: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.
apiUrl?
Section titled “apiUrl?”
optionalapiUrl?: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.
boundSourceOnly?
Section titled “boundSourceOnly?”
optionalboundSourceOnly?: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.
btcSource?
Section titled “btcSource?”
optionalbtcSource?: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.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: protocol-swap2-symbiosis/src/provider.ts:75
fallbackReceiver?
Section titled “fallbackReceiver?”
optionalfallbackReceiver?: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.
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: protocol-swap2-symbiosis/src/provider.ts:116
Injectable for tests.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”RequestInfo | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | Request | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
partnerAddress?
Section titled “partnerAddress?”
optionalpartnerAddress?:string
Defined in: protocol-swap2-symbiosis/src/provider.ts:108
Optional: a registered partner address that shares the protocol fee (the API’s partnerAddress).
partnerId?
Section titled “partnerId?”
optionalpartnerId?:string
Defined in: protocol-swap2-symbiosis/src/provider.ts:110
Optional: sent as X-Partner-Id.
quoteTtlMs?
Section titled “quoteTtlMs?”
optionalquoteTtlMs?: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.
slippageBps?
Section titled “slippageBps?”
optionalslippageBps?: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.
tronFeeLimitCap?
Section titled “tronFeeLimitCap?”
optionaltronFeeLimitCap?: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).
tronSource?
Section titled “tronSource?”
optionaltronSource?: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.