Skip to main content

JS Kit SDK API Reference / Records / getRecordV1Address

Function: getRecordV1Address()

getRecordV1Address(params): Promise<Address>

Defined in: record/getRecordV1Address.ts:34

Derives the address of a V1 record account.

The V1 account is derived by prefixing the record label to the domain name.

Parameters

params

GetRecordV1AddressParams

Record address derivation parameters

Returns

Promise<Address>

The derived V1 record account address.

Example

const address = await getRecordV1Address({ domain: "example", record: Record.Url });