Skip to main content

JS Kit SDK API Reference / Instructions / RegisterPrimaryInstruction

Class: RegisterPrimaryInstruction

Defined in: instructions/registerPrimaryInstruction.ts:5

Builder for registering an address's SNS primary domain.

Constructors

Constructor

new RegisterPrimaryInstruction(): RegisterPrimaryInstruction

Defined in: instructions/registerPrimaryInstruction.ts:14

Returns

RegisterPrimaryInstruction

Properties

tag

tag: number

Defined in: instructions/registerPrimaryInstruction.ts:7

Instruction discriminator.


schema

static schema: object

Defined in: instructions/registerPrimaryInstruction.ts:8

struct

struct: object

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programAddress, nameAccount, primaryAccount, owner, systemProgram, optParent?): Instruction

Defined in: instructions/registerPrimaryInstruction.ts:22

Parameters

programAddress

Address

nameAccount

Address

primaryAccount

Address

owner

Address

systemProgram

Address

optParent?

Address

Returns

Instruction


serialize()

serialize(): Uint8Array

Defined in: instructions/registerPrimaryInstruction.ts:18

Returns

Uint8Array