JS Kit SDK API Reference / Bindings / updateNameRegistry
Function: updateNameRegistry()
updateNameRegistry(
params):Promise<Instruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>>
Defined in: bindings/updateNameRegistry.ts:67
Updates the data of a raw SPL Name Registry account.
This low-level helper accepts a raw registry seed/name as domain and does
not parse .sns or .sol suffixes.
Parameters
params
Update parameters
Returns
Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>
Transaction instruction.
Example
const instruction = await updateNameRegistry({
rpc,
domain: "example",
offset: 0,
data: new TextEncoder().encode("data"),
});