KyberswapProviderConfig
Defined in: protocol-swap2-kyberswap/src/provider.ts:51
Extended by
Section titled “Extended by”Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?:string
Defined in: protocol-swap2-kyberswap/src/provider.ts:56
KyberSwap API-gateway key (X-Api-Key); keep it on a server. Without it the keyless public API is used.
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: protocol-swap2-kyberswap/src/provider.ts:58
Override the API base ({baseUrl}/{chain}/api/v1/...).
clientId?
Section titled “clientId?”
optionalclientId?:string
Defined in: protocol-swap2-kyberswap/src/provider.ts:54
x-client-id and the build’s source (written on-chain in the swap’s clientData). Default “anywalletkit”.
defaultSlippageBps?
Section titled “defaultSlippageBps?”
optionaldefaultSlippageBps?:number
Defined in: protocol-swap2-kyberswap/src/provider.ts:63
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: protocol-swap2-kyberswap/src/provider.ts:52
enabledChains?
Section titled “enabledChains?”
optionalenabledChains?: readonlynumber[]
Defined in: protocol-swap2-kyberswap/src/provider.ts:62
Chains to quote on (default: every chain in KYBER_CHAINS).
excludedSources?
Section titled “excludedSources?”
optionalexcludedSources?: readonlystring[]
Defined in: protocol-swap2-kyberswap/src/provider.ts:79
KyberSwap source ids to leave out of routes.
excludeRfqSources?
Section titled “excludeRfqSources?”
optionalexcludeRfqSources?:boolean
Defined in: protocol-swap2-kyberswap/src/provider.ts:77
limitOrders?
Section titled “limitOrders?”
optionallimitOrders?:KyberSourceSetting
Defined in: protocol-swap2-kyberswap/src/provider.ts:72
KyberSwap’s own limit orders (kyberswap-limit-order-v2), filled from an off-chain order book. Default “exclude”.
quoteTtlMs?
Section titled “quoteTtlMs?”
optionalquoteTtlMs?:number
Defined in: protocol-swap2-kyberswap/src/provider.ts:64
optionalrfq?:KyberSourceSetting
Defined in: protocol-swap2-kyberswap/src/provider.ts:70
RFQ market makers (KyberSwap’s “RFQ sources”: pmm-N, Bebop, Native, Hashflow, …), whose firm quote is signed
when the route is built. Default “exclude”. See the README (“RFQ and limit orders”) for what including them costs.
rpcUrls?
Section titled “rpcUrls?”
optionalrpcUrls?:Readonly<Record<number, readonlystring[]>>
Defined in: protocol-swap2-kyberswap/src/provider.ts:60
JSON-RPC endpoints per chain id: required for execution (pre-broadcast simulation) and receipts.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: protocol-swap2-kyberswap/src/provider.ts:65