Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

🚧

New site!

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

Usage: client.platform.names.search(labelPrefix, parentDomain)
Description: This method will allow you to search all records matching the label prefix on the specified parent domain.

Parameters:

parameterstyperequiredDescription
labelPrefixStringyeslabel prefix to search for
parentDomainStringyesparent domain name on which to perform the search

Example:

This example will describe how to search all names on the parent domain dash that starts with the label prefix al.
It will resolves names documents such as alice, alex etc...

const labelPrefix = 'al';
const parentDomain = 'dash';
const document = await client.platform.names.search(labelPrefix, parentDomain);

Returns: Documents matching the label prefix on the parent domain.