Optional
healthConfigures reporting of health status of the Tezos node connection. Tezos node watcher gets HEAD block header and reports respective error if any.
Optional
resultThe time in milliseconds for how long the health result (of all HealthStatus-es) is cached.
An integer with minimum 0
.
5_000
Optional
timeoutThe time in milliseconds to wait before a health RPC request times out.
An integer with minimum 1
.
1_000
Optional
unhealthyOptional
watcherUse resultCacheMillis instead.
Optional
monitorConfigures connection to Tezos node monitor.
Optional
chunkTezos node monitor responds with chunks of incomplete JSON. So they need to be joined.
Optional
fail?: numberThe number of chunks from Tezos node monitor when it fails and the connection is reestablished.
An integer with minimum 1
.
1_000
Optional
warn?: numberThe number of chunks from Tezos node monitor when a warning is logged.
An integer with minimum 1
.
100
Optional
reconnectIf Tezos node monitor does not send a new item (block or mempool operation group respectively) for specified number of milliseconds, then the connection is considered as stuck and it is restarted.
An integer with minimum 1
.
180_000
(3 minutes)
Optional
retryThe array which configures how many times an RPC request is retried when it fails. An array item is a sleep delay is milliseconds until the retry.
[50, 500, 1_000, 2_000, 4_000]
Optional
timeoutThe time in milliseconds to wait before an RPC request times out. Some requests may override it explicitly in the code.
An integer with minimum 1
.
30_000
The URL of Tezos node RPC to which the indexer should connect. It must be an absolute URL string.
Generated using TypeDoc
Configures connection to Tezos node to be used to fetch blockchain data. This is used as a part of DappetizerConfigUsingDb.
Example
Sample usage (all properties specified explicitly) within
dappetizer.config.ts
file: