JS Kit SDK API Reference / Bindings / createNameRegistry
Function: createNameRegistry()
createNameRegistry(
params):Promise<Instruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>>
Defined in: bindings/createNameRegistry.ts:67
Creates a raw SPL Name Registry account with the given rent budget, allocated space, owner, and class.
This low-level helper accepts a raw registry seed/name and does not parse
.sns or .sol suffixes.
Parameters
params
Creation parameters
Returns
Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>
Transaction instruction.
Example
const instruction = await createNameRegistry({ rpc, name: "example", space: 32, payer, owner });