Skip to main content

JS Kit SDK API Reference / Instructions / UpdateRecordInstruction

Class: UpdateRecordInstruction

Defined in: instructions/updateRecordInstruction.ts:26

Builder for updating content in an SNS V2 record account.

Constructors

Constructor

new UpdateRecordInstruction(obj): UpdateRecordInstruction

Defined in: instructions/updateRecordInstruction.ts:42

Parameters

obj

UpdateRecordInstructionParams

Returns

UpdateRecordInstruction

Properties

content

content: ReadonlyUint8Array

Defined in: instructions/updateRecordInstruction.ts:32

Serialized record content.


record

record: string

Defined in: instructions/updateRecordInstruction.ts:30

Encoded V2 record label.


tag

tag: number

Defined in: instructions/updateRecordInstruction.ts:28

Instruction discriminator.


schema

static schema: object

Defined in: instructions/updateRecordInstruction.ts:34

struct

struct: object

struct.content

content: object

struct.content.array

array: object

struct.content.array.type

type: string = "u8"

struct.record

record: string = "string"

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programAddress, systemProgram, splNameServiceProgram, feePayer, record, domain, domainOwner, centralState): Instruction

Defined in: instructions/updateRecordInstruction.ts:52

Parameters

programAddress

Address

systemProgram

Address

splNameServiceProgram

Address

feePayer

Address

record

Address

domain

Address

domainOwner

Address

centralState

Address

Returns

Instruction


serialize()

serialize(): Uint8Array

Defined in: instructions/updateRecordInstruction.ts:48

Returns

Uint8Array