Skip to main content

Interface: OvercastUtils

Defined in: packages/overcast-core/src/protocol/utils.ts:12

Small, pure, chain-specific helpers that don't fit the read/write split but still vary per settlement layer — address validation and normalization today.

A layer provides one implementation (e.g. SolanaUtils) through its ProtocolFactory; unlike the reader / writer / signer these are stateless and need no connection, so the factory hands them over synchronously. Exposed to consumers as app.utils.

Methods

isValidAddress()

isValidAddress(value): boolean;

Defined in: packages/overcast-core/src/protocol/utils.ts:14

True if value is a well-formed address / id on this settlement layer.

Parameters

ParameterType
valuestring

Returns

boolean


normalizeAddress()

normalizeAddress(value): string;

Defined in: packages/overcast-core/src/protocol/utils.ts:20

The canonical (trimmed, re-encoded) form of value, or throws if value is not a valid address on this layer.

Parameters

ParameterType
valuestring

Returns

string