# Register (Data Streams) v0.2.9 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.2.9/data-streams-register

> For the complete documentation index, see [llms.txt](/llms.txt).

> **NOTE: Integrate Chainlink Local into your project**
>
> ### npm
>
> If you use [NPM](https://www.npmjs.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> npm install @chainlink/local@0.2.9
> ```
>
> ### yarn
>
> If you use [Yarn](https://yarnpkg.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> yarn add @chainlink/local@0.2.9
> ```
>
> ### foundry
>
> If you use [Foundry](https://book.getfoundry.sh/):
>
> ```shell
> forge install smartcontractkit/chainlink-local@v0.2.9
> ```
>
> and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either `remappings.txt` or `foundry.toml` file
>
> ### RemixIDE
>
> Import the `CCIPLocalSimulator` contract from the `@chainlink/local` package:
>
> ```solidity
> import {CCIPLocalSimulator} from "@chainlink/local@0.2.9/src/ccip/CCIPLocalSimulator.sol";
> ```

## Register (Data Streams)

Data Streams network configuration registry.

[Register (Data Streams)](https://github.com/smartcontractkit/chainlink-local/blob/v0.2.9/src/data-streams/Register.sol)

## Structs

### NetworkDetails

```solidity
struct NetworkDetails {
  address verifierProxyAddress;
  address linkAddress;
}
```

## Variables

### s\_networkDetails

```solidity
mapping(uint256 => struct Register.NetworkDetails) s_networkDetails
```

Mapping to store network details based on chain ID.

## Functions

### constructor

```solidity
constructor() public
```

Constructor to initialize the network details for various chains.

### getNetworkDetails

```solidity
function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails networkDetails)
```

Retrieves network details for a given chain ID.

#### Parameters

| Name    | Type    | Description                                   |
| ------- | ------- | --------------------------------------------- |
| chainId | uint256 | - The ID of the chain to get the details for. |

#### Returns

| Name           | Type                           | Description                                       |
| -------------- | ------------------------------ | ------------------------------------------------- |
| networkDetails | struct Register.NetworkDetails | - The network details for the specified chain ID. |

### setNetworkDetails

```solidity
function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external
```

Sets the network details for a given chain ID.

#### Parameters

| Name           | Type                           | Description                                              |
| -------------- | ------------------------------ | -------------------------------------------------------- |
| chainId        | uint256                        | - The ID of the chain to set the details for.            |
| networkDetails | struct Register.NetworkDetails | - The network details to set for the specified chain ID. |