Rust SDK API Reference / Record instructions / eth_validate_record_v2_content
Function: eth_validate_record_v2_content()
pub fn eth_validate_record_v2_content(domain: &str, record: Record, owner: Pubkey, payer: Pubkey, signature: Vec<u8>, expected_pubkey: Vec<u8>) -> Result<Instruction, SnsError>
Defined in: record_v2.rs:172
Builds a V2 Ethereum RoA validation instruction. The program checks the supplied 65-byte secp256k1 signature against the supplied 20-byte Ethereum expected_pubkey; no on-chain verifier signer is used.
Parameters
domain is canonical lowercase .sns; record identifies the account; owner authorizes it; payer funds it.
Returns
An unsigned Instruction, or domain-key derivation errors through SnsError.
Example
use sns_sdk::{bindings::record_v2::eth_validate_record_v2_content, record::Record};
let instruction = eth_validate_record_v2_content("example.sns", Record::Eth, owner, payer, signature, address)?;