Skip to content

@armada/sdk / index / IndexerEventSourceOptions

Interface: IndexerEventSourceOptions

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

Properties

baseUrl

readonly baseUrl: string

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

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:41

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:43

Injected fetch (defaults to the global).

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>