@orangecheck/stamp-ots / UpgradeOptions
Interface: UpgradeOptions
Defined in: upgrade.ts:24
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-fetch"></a> fetch? | (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> | Optional custom fetch passed through to calendar clients. | upgrade.ts:36 |
<a id="property-headersource"></a> headerSource? | BlockHeaderSource | Header source used to resolve the anchor's block hash and to check that the proof's Merkle root is in that block. | upgrade.ts:29 |
<a id="property-parseanchor"></a> parseAnchor? | (proofBytes: Uint8Array) => Promise< | { blockHash: string; blockHeight: number; } | null> | Alternative to headerSource: given the merged proof bytes, return the anchor if the proof is confirmed, else null. | upgrade.ts:34 |
<a id="property-signal"></a> signal? | AbortSignal | - | upgrade.ts:39 |
<a id="property-timeoutms"></a> timeoutMs? | number | Request timeout per calendar. Default 30_000ms. | upgrade.ts:38 |