Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In
These docs are for v0.24.0. Click to read the latest docs for v0.25-redirect.

ResolveByRecord

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.