Skip to main content

Domain registration

Rust SDK API Reference / Domain registration

These local helpers build the instruction set for registering a canonical top-level .sns domain and derive the program addresses it needs. They do not sign or submit a transaction; register_domain accepts a full lowercase .sns name and defaults payment to USDC.

APIs

APIDescription
register_domainBuilds the transaction instructions for a top-level registration.
get_register_instructionBuilds a registration instruction from explicit generated accounts and parameters.
get_pyth_feed_account_keyDerives a Pyth push-feed account address.