The ActionCode class represents an action code in the Action Codes Protocol. It encapsulates all the data and logic for a single action code, including its status, metadata, transaction details, and utility methods for validation and display.
interface ActionCodeTransaction { transaction?: string; // Solana: base64 string txSignature?: string; // Solana signature txType?: string; // Transaction type for categorization message?: string; // For sign-only mode: the message to be signed signedMessage?: string; // For sign-only mode: the signed message or signature intentType?: 'transaction' | 'sign-only'; // Explicit intent type}
Represents transaction or message data attached to an action code.