JavaScript SDK API Reference / Instructions / CreateReverseInstruction
Class: CreateReverseInstruction
Defined in: instructions/createReverseInstruction.ts:20
Serializable registrar instruction for creating a reverse-lookup registry.
Constructors
Constructor
new CreateReverseInstruction(
obj):CreateReverseInstruction
Defined in: instructions/createReverseInstruction.ts:32
Parameters
obj
CreateReverseInstructionParams
Returns
CreateReverseInstruction
Properties
name
name:
string
Defined in: instructions/createReverseInstruction.ts:24
Raw reverse lookup payload.
tag
tag:
number
Defined in: instructions/createReverseInstruction.ts:22
Instruction discriminator.
schema
staticschema:object
Defined in: instructions/createReverseInstruction.ts:25
struct
struct:
object
struct.name
name:
string="string"
struct.tag
tag:
string="u8"
Methods
getInstruction()
getInstruction(
programId,namingServiceProgram,rootDomain,reverseLookup,systemProgram,centralState,feePayer,rentSysvar,parentName?,parentNameOwner?):TransactionInstruction
Defined in: instructions/createReverseInstruction.ts:41
Builds the transaction instruction with the required reverse-registry accounts.
Parameters
programId
PublicKey
namingServiceProgram
PublicKey
rootDomain
PublicKey
reverseLookup
PublicKey
systemProgram
PublicKey
centralState
PublicKey
feePayer
PublicKey
rentSysvar
PublicKey
parentName?
PublicKey
parentNameOwner?
PublicKey
Returns
TransactionInstruction
serialize()
serialize():
Uint8Array
Defined in: instructions/createReverseInstruction.ts:37
Serializes the registrar instruction payload.
Returns
Uint8Array