Skip to main content

JavaScript SDK API Reference / Bindings / updateNameRegistry

Function: updateNameRegistry()

updateNameRegistry(connection, name, offset, input_data, nameClass?, nameParent?): Promise<TransactionInstruction>

Defined in: bindings/updateNameRegistry.ts:26

Builds an instruction to overwrite name registry data.

Parameters​

connection​

Connection

Solana RPC connection

name​

string

Name of the name registry to update

offset​

number

Offset where data should be written

input_data​

Buffer

Data to write

nameClass?​

PublicKey

Optional class of the name account

nameParent?​

PublicKey

Optional parent name account

Returns​

Promise<TransactionInstruction>

Transaction instruction.

Example​

const instruction = await updateNameRegistry(connection, "example", 0, Buffer.from("data"));