Skip to main content

JS Kit SDK API Reference / Bindings / createReverse

Function: createReverse()

createReverse(params): Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Defined in: bindings/createReverse.ts:54

Creates a raw reverse lookup record for the specified domain account.

This low-level helper accepts the stored reverse payload as domain and does not parse .sns or .sol suffixes.

Parameters

params

CreateReverseParams

Reverse lookup creation parameters

Returns

Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Transaction instruction.

Example

const instruction = await createReverse({ domainAddress, domain: "example", payer });