vault.registerIdentity(RegisterIdentity)
Register an ONCHAINID for a user in the vault’s Identity Registry. Must be called by a wallet authorized as an agent/operator for the registry.
RegisterIdentity Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| vaultDeployer | Signer | Required | Authorized agent of the Identity Registry. Must be connected to a provider. |
| vault | string | Required | Vault address whose Identity Registry will be updated. |
| subject | string | Required | User’s EOA to be associated with the identity. |
| subjectIdentity | string | Required | ONCHAINID contract address for the user. |
| country | string | Required | Country code for the investor (e.g., '0'). |
Returns
| Field | Type | Description |
|---|---|---|
| status | registered | Status of the operation. |
| vault | string | Vault address. |
| identityRegistry | string | Identity Registry contract address. |
| subject | string | User’s EOA associated with the identity. |
| subjectIdentity | string | ONCHAINID contract address for the user. |
| country | string | Country code. |
| registeredBy | string | Address that submitted the transaction. |
| receipt | TransactionReceipt | Transaction receipt of the registration call. |
Usage
TypeScript
JavaScript
Example outputs
- Ensure the user does not already have an identity registered for this vault.
vaultDeployermust be configured as an agent of the Identity Registry.

