Stellar PHP SDK API Documentation

ChallengeValidationErrorInvalidMemoType extends ErrorException

Exception thrown when the challenge transaction contains an invalid memo type.

Thrown when the challenge transaction includes a memo that is not of type MEMO_ID. SEP-10 only supports ID memos for distinguishing users of shared/pooled accounts. Other memo types (MEMO_TEXT, MEMO_HASH, MEMO_RETURN) are not permitted in challenge transactions.

Security Implications: Restricting memo types to MEMO_ID ensures consistent user identification across shared accounts and prevents potential confusion or injection attacks through memo manipulation. Only ID memos provide the deterministic, numeric identification required for secure account scoping.

Common Scenarios:

  • Server incorrectly generates challenge with MEMO_TEXT instead of MEMO_ID
  • Attempt to use MEMO_HASH for user identification (unsupported)
  • Malformed memo type in the challenge transaction
  • Client requesting authentication with non-ID memo type
Tags
see
https://github.com/stellar/stellar-protocol/blob/v3.4.1/ecosystem/sep-0010.md#memos

SEP-10 Memo Requirements

Table of Contents


        
On this page
  • Table Of Contents

Search results