> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genlabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# componentIdFromNewComponentEntityId()

> **componentIdFromNewComponentEntityId**(`entityId`, `root`, `newComponent`): [`GvmComponentId`](/reference/sdk/typescript/index/interfaces/GvmComponentId)

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/payloads/gvm.ts:337](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/payloads/gvm.ts#L337)

## Parameters

### entityId

[`EntityId`](/reference/sdk/typescript/index/type-aliases/EntityId)

### root

[`GvmContract`](/reference/sdk/typescript/index/type-aliases/GvmContract)

### newComponent

`Pick`\<[`ParsedNewComponent`](/reference/sdk/typescript/index/interfaces/ParsedNewComponent), `"newComponentIndex"` | `"componentCodeId"`>

## Returns

[`GvmComponentId`](/reference/sdk/typescript/index/interfaces/GvmComponentId)
