Skip to main content

Rust SDK API Reference / Address derivation / get_domain_mint

Function: get_domain_mint()

pub fn get_domain_mint(domain_key: &Pubkey) -> Pubkey

Defined in: derivation.rs:141

Derives the canonical name-tokenizer mint PDA for an SNS name account. The configured program ID is feature-dependent on devnet.

Parameters

ParameterTypeDescription
domain_key&PubkeySNS name-registry account key.

Returns

The derived mint Pubkey.

Example

use sns_sdk::derivation::{get_domain_mint, get_sns_domain_key};

let key = get_sns_domain_key("example")?.key;
let mint = get_domain_mint(&key);