Rust SDK API Reference / Record instructions / validate_record_v2_content
Function: validate_record_v2_content()
pub fn validate_record_v2_content(staleness: bool, domain: &str, record: Record, owner: Pubkey, payer: Pubkey, verifier: Pubkey) -> Result<Instruction, SnsError>
Defined in: record_v2.rs:141
Builds a validation instruction using a Solana verifier signer. staleness = true validates the staleness ID; false validates the Right-of-Association ID.
Parameters
domain is canonical lowercase .sns; record identifies the account; owner and payer authorize and fund it; verifier must sign the submitted validation transaction.
Returns
An unsigned Instruction, or domain-key derivation errors through SnsError.
Example
use sns_sdk::{bindings::record_v2::validate_record_v2_content, record::Record};
let instruction = validate_record_v2_content(true, "example.sns", Record::Url, owner, payer, verifier)?;