# correlateDeployTxId

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-indexer-public-data-provider](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider.md) / correlateDeployTxId

# Function: correlateDeployTxId()

> **correlateDeployTxId**(`contractAddress`, `contractActions`, `identifiers`): `string`

**`Internal`**

Correlates a contract action at `contractAddress` with the transaction's identifier at the same positional index. Throws [IndexerDataError](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerDataError.md) when the deploy lacks an action for the address, when the corresponding identifier slot is missing, or when the identifier is not a non-empty string. All indicate that the indexer's contract-action / identifier rows are out of sync.

Exported for unit testing the correlation in isolation. Production callers should go through `PublicDataProvider.watchForDeployTxData`.

## Parameters[​](#parameters "Direct link to Parameters")

### contractAddress[​](#contractaddress "Direct link to contractAddress")

`string`

### contractActions[​](#contractactions "Direct link to contractActions")

readonly `object`\[]

### identifiers[​](#identifiers "Direct link to identifiers")

readonly `string`\[]

## Returns[​](#returns "Direct link to Returns")

`string`
