# DataStreamsLocalSimulator v0.2.6 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.2.6/data-streams-local-simulator

> 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.6
> ```
>
> ### 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.6
> ```
>
> ### foundry
>
> If you use [Foundry](https://book.getfoundry.sh/):
>
> ```shell
> forge install smartcontractkit/chainlink-local@v0.2.6
> ```
>
> 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.6/src/ccip/CCIPLocalSimulator.sol";
> ```

## DataStreamsLocalSimulator

Local Data Streams simulator (no-fork mode).

[DataStreamsLocalSimulator](https://github.com/smartcontractkit/chainlink-local/blob/v0.2.6/src/data-streams/DataStreamsLocalSimulator.sol)

## Variables

### i\_linkToken

```solidity
contract LinkToken i_linkToken
```

The LINK token instance

### i\_wrappedNative

```solidity
contract WETH9 i_wrappedNative
```

The wrapped native token instance

### s\_mockFeeManager

```solidity
contract MockFeeManager s_mockFeeManager
```

### s\_mockRewardManager

```solidity
contract MockRewardManager s_mockRewardManager
```

### s\_mockVerifier

```solidity
contract MockVerifier s_mockVerifier
```

### s\_mockVerifierProxy

```solidity
contract MockVerifierProxy s_mockVerifierProxy
```

## Functions

### configuration

```solidity
function configuration() public view returns (contract WETH9 wrappedNative_, contract LinkToken linkToken_, contract MockVerifier mockVerifier_, contract MockVerifierProxy mockVerifierProxy_, contract MockFeeManager mockFeeManager_, contract MockRewardManager mockRewardManager_)
```

@notice Returns configuration details for pre-deployed contracts and services
needed for local Data Streams simulations.

#### Returns

| Name                | Type                       | Description                         |
| ------------------- | -------------------------- | ----------------------------------- |
| wrappedNative\_     | contract WETH9             | - The wrapped native token.         |
| linkToken\_         | contract LinkToken         | - The LINK token.                   |
| mockVerifier\_      | contract MockVerifier      | - The mock verifier contract.       |
| mockVerifierProxy\_ | contract MockVerifierProxy | - The mock verifier proxy contract. |
| mockFeeManager\_    | contract MockFeeManager    | - The mock fee manager contract.    |
| mockRewardManager\_ | contract MockRewardManager | - The mock reward manager contract. |

### constructor

```solidity
constructor() public
```

### requestLinkFromFaucet

```solidity
function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success)
```

Requests LINK tokens from the faucet. The provided amount of tokens are
transferred to provided destination address.

#### Parameters

| Name   | Type    | Description                                        |
| ------ | ------- | -------------------------------------------------- |
| to     | address | - The address to which LINK tokens are to be sent. |
| amount | uint256 | - The amount of LINK tokens to send.               |

#### Returns

| Name    | Type | Description                                                                   |
| ------- | ---- | ----------------------------------------------------------------------------- |
| success | bool | - Returns `true` if the transfer of tokens was successful, otherwise `false`. |