LayerswapProviderConfig
Defined in: protocol-swap2-layerswap/src/provider.ts:49
Extended by
Section titled “Extended by”Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?:string
Defined in: protocol-swap2-layerswap/src/provider.ts:57
Sent as X-LS-APIKEY (Partner Dashboard → app → key; the key picks mainnet or testnet). Read endpoints answer
without one; swap creation is attributed to it. Prefer a proxy that adds it — a key shipped in an app is public.
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: protocol-swap2-layerswap/src/provider.ts:52
Layerswap’s API (default https://api.layerswap.io/api/v2) or the app’s own proxy in front of it.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: protocol-swap2-layerswap/src/provider.ts:50
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: protocol-swap2-layerswap/src/provider.ts:59
Injectable for tests and for runtimes that bring their own.
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>