Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

ResolveByRecord

🚧

New site!

All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.

Usage: client.platform.names.resolveByRecord(record, value)
Description: This method will allow you to resolve a DPNS record by identity ID.

Parameters:

parameterstyperequiredDescription
recordStringyesType of the record (dashUniqueIdentityId or dashAliasIdentityId)
valueStringyesIdentifier value for the record

Example:

This example will describe how to resolve names by the dash unique identity id.

const identityId = '3ge4yjGinQDhxh2aVpyLTQaoka45BkijkoybfAkDepoN';
const document = await client.platform.names.resolveByRecord('dashUniqueIdentityId', identityId);

Returns: array of ExtendedDocument.