JavaScript SDK API Reference / Instructions / updateInstruction
Function: updateInstruction()
updateInstruction(
nameProgramId,nameAccountKey,offset,inputData,nameUpdateSigner):TransactionInstruction
Defined in: instructions/updateInstruction.ts:20
Builds an SPL Name Service instruction that writes bytes to a name registry.
Parameters
nameProgramId
PublicKey
SPL Name Service program address.
nameAccountKey
PublicKey
Registry address to update.
offset
Byte offset at which to begin writing.
inputData
Buffer
Bytes written to the account.
nameUpdateSigner
PublicKey
Signer authorized to update the registry.
Returns
TransactionInstruction
A transaction instruction that writes the supplied bytes.
Example
const instruction = updateInstruction(nameProgramId, nameAccount, offset, data, updateSigner);