Skip to main content

JS Kit SDK API Reference / Instructions / UpdateNameRegistryInstruction

Class: UpdateNameRegistryInstruction

Defined in: instructions/updateNameRegistryInstruction.ts:20

Builder for updating the data of an SNS name-registry account.

Constructors​

Constructor​

new UpdateNameRegistryInstruction(obj): UpdateNameRegistryInstruction

Defined in: instructions/updateNameRegistryInstruction.ts:36

Parameters​

obj​

UpdateNameRegistryInstructionParams

Returns​

UpdateNameRegistryInstruction

Properties​

inputData​

inputData: Uint8Array

Defined in: instructions/updateNameRegistryInstruction.ts:26

Bytes to write.


offset​

offset: number

Defined in: instructions/updateNameRegistryInstruction.ts:24

Byte offset where the update begins.


tag​

tag: number

Defined in: instructions/updateNameRegistryInstruction.ts:22

Instruction discriminator.


schema​

static schema: object

Defined in: instructions/updateNameRegistryInstruction.ts:28

struct​

struct: object

struct.inputData​

inputData: object

struct.inputData.array​

array: object

struct.inputData.array.type​

type: string = "u8"

struct.offset​

offset: string = "u32"

struct.tag​

tag: string = "u8"

Methods​

getInstruction()​

getInstruction(programAddress, domainAddress, signer): Instruction

Defined in: instructions/updateNameRegistryInstruction.ts:46

Parameters​

programAddress​

Address

domainAddress​

Address

signer​

Address

Returns​

Instruction


serialize()​

serialize(): Uint8Array

Defined in: instructions/updateNameRegistryInstruction.ts:42

Returns​

Uint8Array