# LinkToken v0.3.0 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.3.0/link-token

> 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";
> ```

## LinkToken

LINK token implementation.

[LinkToken](https://github.com/smartcontractkit/chainlink-local/blob/v0.3.0/src/shared/LinkToken.sol)

## Variables

### NAME

The name of the LINK token.

```solidity
string private constant NAME = "ChainLink Token"
```

### SYMBOL

The symbol of the LINK token.

```solidity
string private constant SYMBOL = "LINK"
```

### TOTAL\_SUPPLY

The total supply of LINK tokens.

```solidity
uint256 private constant TOTAL_SUPPLY = 10 ** 27
```

## Functions

### \_onCreate

Hook that is called when this contract is created.

Useful to override constructor behaviour in child contracts (e.g., LINK bridge
tokens). The default implementation mints 10\*\*27 tokens to the contract
deployer.

```solidity
function _onCreate() internal virtual;
```

### constructor

Constructor to initialize the LinkToken contract with a fixed total supply,
name, and symbol.

Calls the ERC677 constructor with the name and symbol, and then mints the total
supply to the contract deployer.

```solidity
constructor() ERC677(NAME, SYMBOL);
```