Skip to main content

JavaScript SDK API Reference / Instructions / CreateWithNftInstruction

Class: CreateWithNftInstruction

Defined in: instructions/createWithNftInstruction.ts:22

Serializable registrar instruction for registration with an eligible NFT.

Constructors

Constructor

new CreateWithNftInstruction(obj): CreateWithNftInstruction

Defined in: instructions/createWithNftInstruction.ts:37

Parameters

obj

CreateWithNftInstructionParams

Returns

CreateWithNftInstruction

Properties

name

name: string

Defined in: instructions/createWithNftInstruction.ts:26

TLD-less domain name.


space

space: number

Defined in: instructions/createWithNftInstruction.ts:28

Account data size in bytes.


tag

tag: number

Defined in: instructions/createWithNftInstruction.ts:24

Instruction discriminator.


schema

static schema: object

Defined in: instructions/createWithNftInstruction.ts:29

struct

struct: object

struct.name

name: string = "string"

struct.space

space: string = "u32"

struct.tag

tag: string = "u8"

Methods

getInstruction()

getInstruction(programId, namingServiceProgram, rootDomain, name, reverseLookup, systemProgram, centralState, buyer, nftSource, nftMetadata, nftMint, masterEdition, collection, splTokenProgram, rentSysvar, state, mplTokenMetadata): TransactionInstruction

Defined in: instructions/createWithNftInstruction.ts:47

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

Parameters

programId

PublicKey

namingServiceProgram

PublicKey

rootDomain

PublicKey

name

PublicKey

reverseLookup

PublicKey

systemProgram

PublicKey

centralState

PublicKey

buyer

PublicKey

nftSource

PublicKey

nftMetadata

PublicKey

nftMint

PublicKey

masterEdition

PublicKey

collection

PublicKey

splTokenProgram

PublicKey

rentSysvar

PublicKey

state

PublicKey

mplTokenMetadata

PublicKey

Returns

TransactionInstruction


serialize()

serialize(): Uint8Array

Defined in: instructions/createWithNftInstruction.ts:43

Serializes the registrar instruction payload.

Returns

Uint8Array