Skip to main content

Rust SDK API Reference / Primary domains / derive_primary_domain_key

Function: derive_primary_domain_key()

pub fn derive_primary_domain_key(owner: &Pubkey) -> Pubkey

Defined in: primary_domain.rs:10

Derives the primary-domain PDA using the compatibility-preserved favourite_domain seed and the name-offers program.

Parameters

owner: wallet public key.

Returns

The primary-domain PDA.

Example

use sns_sdk::primary_domain::derive_primary_domain_key;
let key = derive_primary_domain_key(&owner);