JavaScript SDK API Reference / Instructions
Instructions
Low-level SPL Name Service and SNS instruction classes.
Classes
| Class | Description |
|---|---|
| BurnInstruction | Serializable registrar instruction for burning a registered domain. |
| CreateReverseInstruction | Serializable registrar instruction for creating a reverse-lookup registry. |
| CreateSplitV2Instruction | Serializable V2 registrar instruction for paid domain registration. |
| CreateWithNftInstruction | Serializable registrar instruction for registration with an eligible NFT. |
| SetPrimaryInstruction | Serializable registrar instruction for setting a wallet primary domain. |
Interfaces
| Interface | Description |
|---|---|
| AccountKey | Account metadata used when constructing a Solana transaction instruction. |
| CreateReverseInstructionParams | Input for creating a reverse-lookup registry. |
| CreateSplitV2InstructionParams | Input for paid V2 domain registration. |
| CreateWithNftInstructionParams | Input for registration with an eligible NFT. |
Functions
| Function | Description |
|---|---|
| createInstruction | Builds an SPL Name Service instruction that creates a name registry account. |
| deleteInstruction | Builds an SPL Name Service instruction that deletes a name registry account. |
| reallocInstruction | Builds an SPL Name Service instruction that resizes a name registry account. |
| transferInstruction | Builds an SPL Name Service instruction that transfers a name registry owner. |
| updateInstruction | Builds an SPL Name Service instruction that writes bytes to a name registry. |