Skip to content

fetchPrebuiltRegistryIndex

fetchPrebuiltRegistryIndex(options): Promise<PrefetchedRegistryIndexes>

Defined in: packages/sdk/src/official-registry/prefetch.ts:29

Fetch index.calldata.json and index.eip712.json once at the pinned SHA. The caller owns the returned object (pass it to createOfficialRegistry({ indexes })).

PrefetchRegistryIndexOptions

Promise<PrefetchedRegistryIndexes>

OfficialRegistryError INVALID_PIN when pin is not a 40-character SHA, REGISTRY_FETCH_FAILED or REGISTRY_NOT_FOUND when a file cannot be downloaded, and INDEX_MALFORMED when a file is not the expected JSON object.