Skip to main content

JavaScript SDK API Reference / Instructions / CreateSplitV2Instruction

Class: CreateSplitV2Instruction

Defined in: instructions/createSplitV2Instruction.ts:24

Serializable V2 registrar instruction for paid domain registration.

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:28

TLD-less domain name.


referrerIdxOpt​

referrerIdxOpt: number | null

Defined in: instructions/createSplitV2Instruction.ts:32

Approved referrer index, if any.


space​

space: number

Defined in: instructions/createSplitV2Instruction.ts:30

Account data size in bytes.


tag​

tag: number

Defined in: instructions/createSplitV2Instruction.ts:26

Instruction discriminator.


schema​

static schema: object

Defined in: instructions/createSplitV2Instruction.ts:33

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(programId, namingServiceProgram, rootDomain, name, reverseLookup, systemProgram, centralState, buyer, domainOwner, feePayer, buyerTokenSource, pythFeedAccount, vault, splTokenProgram, rentSysvar, state, referrerAccountOpt?): TransactionInstruction

Defined in: instructions/createSplitV2Instruction.ts:52

Builds the transaction instruction with the required paid-registration accounts.

Parameters​

programId​

PublicKey

namingServiceProgram​

PublicKey

rootDomain​

PublicKey

name​

PublicKey

reverseLookup​

PublicKey

systemProgram​

PublicKey

centralState​

PublicKey

buyer​

PublicKey

domainOwner​

PublicKey

feePayer​

PublicKey

buyerTokenSource​

PublicKey

pythFeedAccount​

PublicKey

vault​

PublicKey

splTokenProgram​

PublicKey

rentSysvar​

PublicKey

state​

PublicKey

referrerAccountOpt?​

PublicKey

Returns​

TransactionInstruction


serialize()​

serialize(): Uint8Array

Defined in: instructions/createSplitV2Instruction.ts:48

Serializes the registrar instruction payload.

Returns​

Uint8Array