Skip to main content

onchainid.createIdentity(CreateIdentity)

Create (or fetch if already exists) an ONCHAINID identity for a given EOA (Externally Owned Account where the user controls the keys). If an identity is already associated with a subject, it returns that identity address with status: 'exists'.

CreateIdentity Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs

Created:
Already exists: