Skip to main content

Interface: OnramperOptions

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / OnramperOptions

Interface: OnramperOptions

Defined in: packages/gswap-sdk/dist/index.d.ts:2307

Options of createOnramper.

Properties​

dexBackendBaseUrl​

dexBackendBaseUrl: string

Defined in: packages/gswap-sdk/dist/index.d.ts:2309

The swap backend's base URL (no trailing slash needed).


httpRequestor?​

optional httpRequestor?: HttpRequestor

Defined in: packages/gswap-sdk/dist/index.d.ts:2311

Your own HTTP requestor instead of fetch.


timeoutMs?​

optional timeoutMs?: number

Defined in: packages/gswap-sdk/dist/index.d.ts:2313

Request timeout in milliseconds (default 30 000).


wire?​

optional wire?: WireOptions

Defined in: packages/gswap-sdk/dist/index.d.ts:2315

Query encoding and User-Agent of the requests.