Rust SDK API Reference / Record V2 codecs and verification / ParsedRecordV2::verify_staleness
Method: ParsedRecordV2::verify_staleness()
pub fn verify_staleness(&self, domain_owner_key: Pubkey, domain_owner_account_data: Option<&[u8]>) -> Result<(), SnsError>
Defined in: record_v2.rs:30
Verifies Solana-owner staleness or, for XChain-owned domains, verifies the supplied XDomain account data against the encoded owner chain and address.
Parameters
domain_owner_key is the current registry owner. Supply domain_owner_account_data when that owner is the XChain emitter.
Returns
() on a current record; stale or incomplete proof data returns SnsError::StaleRecord (or malformed-data errors).
Example
parsed.verify_staleness(domain_owner, None)?;