Skip to content

@armada/sdk / index / IndexerEventSourceOptions

Interface: IndexerEventSourceOptions

Defined in: src/sync/event-source.ts:36

Properties

baseUrl

readonly baseUrl: string

Defined in: src/sync/event-source.ts:38

Base URL of the indexer serving the native quick-sync API (e.g. the relayer-v2 watcher).


chainId

readonly chainId: number

Defined in: src/sync/event-source.ts:40

Hub chain id — path segment of /v2/quick-sync/:chainId.


fetchFn?

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

Defined in: src/sync/event-source.ts:42

Injected fetch (defaults to the global).

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | URL | Request

init?

RequestInit

Returns

Promise<Response>