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

Retrieve an Identity

Retrieve details for a Dash Platform Identity


In this tutorial we will retrieve the identity created in the Register an Identity tutorial.



const Dash = require('dash');

const client = new Dash.Client();

const retrieveIdentity = async () => {
  return client.platform.identities.get('an identity ID goes here');

  .then((d) => console.log('Identity retrieved:\n', d.toJSON()))
  .catch((e) => console.error('Something went wrong:\n', e))
  .finally(() => client.disconnect());

Example Identity

The following example response shows a retrieved identity:


What's Happening

After we initialize the Client, we request an identity. The platform.identities.get method takes a single argument: an identity ID. After the identity is retrieved, it is displayed on the console.