# Register (Data Streams) v0.3.0 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.3.0/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.3.0
> ```
>
> ### 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.3.0
> ```
>
> ### foundry
>
> If you use [Foundry](https://book.getfoundry.sh/):
>
> ```shell
> forge install smartcontractkit/chainlink-local@v0.3.0
> ```
>
> 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.3.0/src/ccip/CCIPLocalSimulator.sol";
> ```

## Register (Data Streams)

Data Streams network configuration registry.

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

## Structs

### NetworkDetails

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

## Variables

### s\_networkDetails

Mapping to store network details based on chain ID.

```solidity
mapping(uint256 chainId => NetworkDetails) internal s_networkDetails
```

## Functions

### constructor

Constructor to initialize the network details for various chains.

```solidity
constructor() ;
```

### getNetworkDetails

Retrieves network details for a given chain ID.

```solidity
function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails);
```

**Parameters**

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

**Returns**

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

### setNetworkDetails

Sets the network details for a given chain ID.

```solidity
function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external;
```

**Parameters**

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