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
| API | Description |
|---|---|
derive_primary_domain_key | Derives a wallet's primary-domain PDA. |
PrimaryDomain::parse | Decodes and validates primary-domain account state. |
set_primary_domain_instruction | Builds an instruction to set primary-domain state. |