JS Kit SDK API Reference / Instructions / CreateWithNftInstruction
Class: CreateWithNftInstruction
Defined in: instructions/createWithNftInstruction.ts:20
Builder for registering an SNS domain backed by an NFT.
Constructors
Constructor
new CreateWithNftInstruction(
obj):CreateWithNftInstruction
Defined in: instructions/createWithNftInstruction.ts:36
Parameters
obj
CreateWithNftInstructionParams
Returns
CreateWithNftInstruction
Properties
name
name:
string
Defined in: instructions/createWithNftInstruction.ts:24
TLD-less domain name.
space
space:
number
Defined in: instructions/createWithNftInstruction.ts:26
Account data size in bytes.
tag
tag:
number
Defined in: instructions/createWithNftInstruction.ts:22
Instruction discriminator.
schema
staticschema:object
Defined in: instructions/createWithNftInstruction.ts:28
struct
struct:
object
struct.name
name:
string="string"
struct.space
space:
string="u32"
struct.tag
tag:
string="u8"
Methods
getInstruction()
getInstruction(
programAddress,namingServiceProgram,rootDomain,name,reverseLookup,systemProgram,centralState,buyer,nftSource,nftMetadata,nftMint,masterEdition,collection,splTokenProgram,rentSysvar,state,mplTokenMetadata):Instruction
Defined in: instructions/createWithNftInstruction.ts:46
Parameters
programAddress
Address
namingServiceProgram
Address
rootDomain
Address
name
Address
reverseLookup
Address
systemProgram
Address
centralState
Address
buyer
Address
nftSource
Address
nftMetadata
Address
nftMint
Address
masterEdition
Address
collection
Address
splTokenProgram
Address
rentSysvar
Address
state
Address
mplTokenMetadata
Address
Returns
Instruction
serialize()
serialize():
Uint8Array
Defined in: instructions/createWithNftInstruction.ts:42
Returns
Uint8Array