Skip to main content

Primary domains

Rust SDK API Reference / Primary domains

These local helpers derive and parse a wallet's primary-domain state and build its update instruction. PrimaryDomain::parse accepts fetched account bytes and returns std::io::Error, while instruction construction leaves signing and submission to the caller.

APIs

APIDescription
derive_primary_domain_keyDerives a wallet's primary-domain PDA.
PrimaryDomain::parseDecodes and validates primary-domain account state.
set_primary_domain_instructionBuilds an instruction to set primary-domain state.