Skip to main content

JS Kit SDK API Reference / Instructions / CreateSplitV2Instruction

Class: CreateSplitV2Instruction

Defined in: instructions/createSplitV2Instruction.ts:22

Builder for creating a split SNS V2 domain account.

Constructors

Constructor

new CreateSplitV2Instruction(obj): CreateSplitV2Instruction

Defined in: instructions/createSplitV2Instruction.ts:41

Parameters

obj

CreateSplitV2InstructionParams

Returns

CreateSplitV2Instruction

Properties

name

name: string

Defined in: instructions/createSplitV2Instruction.ts:26

TLD-less domain name.


referrerIdxOpt

referrerIdxOpt: number | null

Defined in: instructions/createSplitV2Instruction.ts:30

Approved referrer index, if any.


space

space: number

Defined in: instructions/createSplitV2Instruction.ts:28

Account data size in bytes.


tag

tag: number

Defined in: instructions/createSplitV2Instruction.ts:24

Instruction discriminator.


schema

static schema: object

Defined in: instructions/createSplitV2Instruction.ts:32

struct

struct: object

struct.name

name: string = "string"

struct.referrerIdxOpt

referrerIdxOpt: object

struct.referrerIdxOpt.option

option: string = "u16"

struct.space

space: string = "u32"

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programAddress, namingServiceProgram, rootDomain, name, reverseLookup, systemProgram, centralState, buyer, domainOwner, feePayer, buyerTokenSource, pythFeedAccount, vault, splTokenProgram, rentSysvar, state, referrerAccountOpt?): Instruction

Defined in: instructions/createSplitV2Instruction.ts:52

Parameters

programAddress

Address

namingServiceProgram

Address

rootDomain

Address

name

Address

reverseLookup

Address

systemProgram

Address

centralState

Address

buyer

Address

domainOwner

Address

feePayer

Address

buyerTokenSource

Address

pythFeedAccount

Address

vault

Address

splTokenProgram

Address

rentSysvar

Address

state

Address

referrerAccountOpt?

Address

Returns

Instruction


serialize()

serialize(): Uint8Array

Defined in: instructions/createSplitV2Instruction.ts:48

Returns

Uint8Array