Skip to content

createOfficialRegistry

createOfficialRegistry(config?): OfficialRegistry

Defined in: packages/sdk/src/official-registry/create.ts:32

Registry client for the Ethereum clear-signing catalog.

Omit pin and ref to use VENDORED_REGISTRY_COMMIT. Pass pin for a commit SHA. Pass ref only for a local floating branch or tag.

OfficialRegistryConfig = {}

OfficialRegistry

import { createOfficialRegistry } from '@erc7730/sdk';
const registry = createOfficialRegistry();

OfficialRegistryError INVALID_PIN or INVALID_REF when pin and ref are both set or not usable, and REGISTRY_FETCH_FAILED when this runtime has no fetch.