Skip to content
docs

ShutterApiOptions

Defined in: api.ts:13

readonly optional apiKey?: string | (() => string | undefined)

Defined in: api.ts:21

An API key (Authorization: Bearer …) lifts the per-IP limits (mainnet without a key: 5 registrations, 10 encryption-data and 20 decryption-key requests per 24 h). A getter is read on every request. In a mobile app, prefer calling through your backend rather than shipping a key in the bundle.


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

Defined in: api.ts:22

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>


readonly optional network?: ShutterNetwork

Defined in: api.ts:15

Default Gnosis mainnet.


readonly optional timeoutMs?: number

Defined in: api.ts:24

Per-request timeout, ms. Default 15 000.