Skip to main content
Ctrl+K
Dash Platform latest documentation - Home Dash Platform latest documentation - Home
  • Platform docs
  • Core docs
  • User docs
  • Dash.org
  • Forum
  • GitHub
  • Platform docs
  • Core docs
  • User docs
  • Dash.org
  • Forum
  • GitHub

Section Navigation

Introduction

  • What is Dash
  • What is Dash Platform
  • Intro to Testnet

Tutorials

  • Introduction
  • Connect to a network
  • Create and fund a wallet
  • Setup SDK Client
  • Identities and names
    • Register an Identity
    • Retrieve an identity
    • Topup an identity’s balance
    • Withdraw an Identity’s balance
    • Update an identity
    • Retrieve an account’s identities
    • Transfer to an Identity
    • Register a name for an identity
    • Retrieve a name
  • Contracts and documents
    • Register a data contract
    • Retrieve a data contract
    • Retrieve data contract history
    • Update a data contract
    • Submit documents
    • Retrieve documents
    • Update documents
    • Delete documents
  • Send funds
  • Use DAPI client methods
  • Set up a node
    • Dash masternode
    • Dash Core full node
  • Terminal user interface (TUI)
  • Building Dash Platform

Explanations

  • Decentralized API (DAPI)
  • Platform Protocol (DPP)
    • Data Contract
    • State Transition
    • Document
    • Data Trigger
  • Identity
  • Name Service (DPNS)
  • Drive
    • Platform Chain
    • Platform State
  • Platform Consensus
  • DashPay
  • Fees
  • Tokens
  • Non-Fungible Tokens (NFTs)
  • Query Capabilities

Reference

  • DAPI Endpoints
    • JSON-RPC Endpoints
    • gRPC Overview
    • Core gRPC Endpoints
    • Platform gRPC Endpoints
  • Query Syntax
  • Data Contracts
  • Glossary

Platform Protocol Reference

  • Overview
  • Identity
  • Data Contract
    • Contract Documents
    • Contract Tokens
  • State Transition
  • Document
  • Token
  • Data Trigger
  • Consensus Errors

Resources

  • FAQ
  • Repository Overview
  • Platform Explorer
  • Testnet Block Explorer
  • Testnet Faucet
  • Source Code
  • Previous Version of Docs

JavaScript SDK

  • Overview
  • Examples
    • Fetching an identity from its name
    • Generate a new mnemonic
    • Paying to another address
    • Receive money and display balance
    • Sign and verify messages
    • Using a different account
  • Getting started
    • About Schemas
    • Core concepts
    • Dash Platform applications
    • Working with multiple apps
    • Quick start
    • TypeScript
  • Platform
    • Contracts
      • Create
      • Get
      • History
      • Publish
      • Update
    • Documents
      • Broadcast
      • Create
      • Get
    • Identities
      • Credit Transfer
      • Credit Withdrawal
      • Get
      • Register
      • Topup
      • Update
    • Names
      • Register
      • Resolve
      • ResolveByRecord
      • Search
  • Usage
    • DAPI
    • Dashcore Lib primitives
  • Wallet
    • Accounts
    • Signing and encryption

Rust SDK

  • Overview
  • Quick Start

DAPI Client

  • Overview
  • Quick start
  • Usage
    • DAPIClient
    • Core
      • broadcastTransaction
      • getBestBlockHash
      • getBlockByHash
      • getBlockByHeight
      • getBlockHash
      • getStatus
      • getTransaction
      • subscribeToBlockHeadersWithChainLocks
      • subscribeToMasternodeList
      • subscribeToTransactionsWithProofs
    • Platform
      • broadcastStateTransition
      • getDataContract
      • getDocuments
      • getIdentity
      • getIdentityByFirstPublicKey
      • getIdentityIdByFirstPublicKey
  • Platform docs
  • Platform
  • Names
  • Search

Search#

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:

Parameters

Type

Required

Description

labelPrefix

String

yes

label prefix to search for

parentDomain

String

yes

parent 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.

previous

ResolveByRecord

next

Usage

Edit on GitHub

This Page

  • Show Source

© Copyright 2026, Dash Core Group, Inc.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.