Skip to main content
The protocol meta format is used for structured code verification and memo/message parsing in the Action Codes Protocol. It encodes metadata about the code, its issuer, and its context in a compact string format.

ProtocolMetaV1 Interface

Describes the structure of protocol meta information for code verification.

ProtocolMetaParser Class

Utility class for parsing, serializing, and validating protocol meta strings.

parse

Parses a protocol meta string and returns a ProtocolMetaV1 object, or null if invalid.

serialize

Serializes a ProtocolMetaV1 object into a protocol meta string.

fromInitiator

Creates a ProtocolMetaV1 object from the initiator, issuer, prefix, optional params, and optional timestamp.

validateCode

Validates if a code matches the protocol meta (by comparing the code hash).

validateMetaFromString

Validates if a code matches the protocol meta by parsing from a string.

Example