Skip to main content

JS Kit SDK API Reference / Instructions / TransferInstruction

Class: TransferInstruction

Defined in: instructions/transferInstruction.ts:27

Builder for the SNS name-registry transfer instruction.

Constructors

Constructor

new TransferInstruction(obj): TransferInstruction

Defined in: instructions/transferInstruction.ts:40

Parameters

obj

TransferInstructionParams

Returns

TransferInstruction

Properties

encodedNewOwnerAddress

encodedNewOwnerAddress: ReadonlyUint8Array

Defined in: instructions/transferInstruction.ts:31

Encoded new owner address.


tag

tag: number

Defined in: instructions/transferInstruction.ts:29

Instruction discriminator.


schema

static schema: object

Defined in: instructions/transferInstruction.ts:33

struct

struct: object

struct.encodedNewOwnerAddress

encodedNewOwnerAddress: object

struct.encodedNewOwnerAddress.array

array: object

struct.encodedNewOwnerAddress.array.len

len: number = 32

struct.encodedNewOwnerAddress.array.type

type: string = "u8"

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programAddress, domainAddress, currentOwner, classAddress?, parentAddress?, parentOwner?): Instruction

Defined in: instructions/transferInstruction.ts:49

Parameters

programAddress

Address

domainAddress

Address

currentOwner

Address

classAddress?

Address

parentAddress?

Address

parentOwner?

Address

Returns

Instruction


serialize()

serialize(): Uint8Array

Defined in: instructions/transferInstruction.ts:45

Returns

Uint8Array