Skip to main content

JS Kit SDK API Reference / Instructions / CreateNameRegistryInstruction

Class: CreateNameRegistryInstruction

Defined in: instructions/createNameRegistryInstruction.ts:24

Builder for creating an SNS name-registry account.

Constructors

Constructor

new CreateNameRegistryInstruction(obj): CreateNameRegistryInstruction

Defined in: instructions/createNameRegistryInstruction.ts:43

Parameters

obj

CreateNameRegistryInstructionParams

Returns

CreateNameRegistryInstruction

Properties

lamports

lamports: bigint

Defined in: instructions/createNameRegistryInstruction.ts:30

Account funding amount.


nameHash

nameHash: Uint8Array

Defined in: instructions/createNameRegistryInstruction.ts:28

Hash of the registry name.


space

space: number

Defined in: instructions/createNameRegistryInstruction.ts:32

Account data size in bytes.


tag

tag: number

Defined in: instructions/createNameRegistryInstruction.ts:26

Instruction discriminator.


schema

static schema: object

Defined in: instructions/createNameRegistryInstruction.ts:34

struct

struct: object

struct.lamports

lamports: string = "u64"

struct.nameHash

nameHash: object

struct.nameHash.array

array: object

struct.nameHash.array.type

type: string = "u8"

struct.space

space: string = "u32"

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programAddress, systemProgram, domainAddress, owner, payer, classAddress?, parentAddress?, parentOwner?): Instruction

Defined in: instructions/createNameRegistryInstruction.ts:54

Parameters

programAddress

Address

systemProgram

Address

domainAddress

Address

owner

Address

payer

Address

classAddress?

Address

parentAddress?

Address

parentOwner?

Address

Returns

Instruction


serialize()

serialize(): Uint8Array

Defined in: instructions/createNameRegistryInstruction.ts:50

Returns

Uint8Array