Skip to content

Reading records

Use the idx.get() method to query a record at runtime.

Using default aliases

Pass an alias from default definitions and the DID that you wish to query.

await idx.get('basicProfile', '<DID>')

API reference

Using your aliases

Pass as alias from your aliases object and the DID that you wish to query.

await idx.get('myAlias', '<DID>')

API reference

Authenticated users

If a user is currently authenticated to your application, you only need to pass an alias. When no DID is provided, IDX will default to the DID of the currently authenticated user.

await idx.get('myAlias')

API reference


await idx.get('basicProfile')
  name: 'Alan Turing',
  description: 'I make computers beep good.',
  image: '',
  emoji: '💻'