JS Kit SDK API Reference / Bindings / setPrimaryDomain
Function: setPrimaryDomain()
setPrimaryDomain(
params):Promise<Instruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>>
Defined in: bindings/setPrimaryDomain.ts:48
Sets the primary domain for the specified owner.
This is an address-only API: domainAddress must be an already-derived SNS
domain account.
Parameters
params
Primary-domain registration parameters
Returns
Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>
Transaction instruction.
Example
const instruction = await setPrimaryDomain({ rpc, domainAddress, owner });