ActionCodesProtocol class is the main entry point for the One-Time Action Code Protocol. It provides a unified interface for generating, validating, and managing action codes.
Reference
Protocol
The
Defines the configuration options for the protocol instance.
Creates a new protocol instance with optional custom configuration.
Registers a chain adapter implementation.
Returns an array of registered chain identifiers.
Checks if a chain is supported.
Returns the chain adapter for a given chain, or undefined if not registered.
Validates an action code, checking intent type and required fields.
Creates a new action code for a given public key, signing function, and chain.
Attaches a transaction to an action code with protocol meta injection.
Attaches a message to an action code (sign-only mode).
Finalizes an action code based on its intent type.
Creates protocol meta for a transaction.
Encodes protocol meta for a specific chain.
Decodes protocol meta from a transaction.
Validates a transaction with protocol meta.
Type-safe transaction validation for specific chains.
Detects tampered transactions with type safety.
Type-safe protocol meta decoding.
Returns the current protocol configuration.
Updates the protocol configuration.
Creates a new protocol instance with default configuration.
Creates a new protocol instance with custom configuration.