# CCIP v1.6.1 BurnMintTokenPool Contract API Reference
Source: https://docs.chain.link/ccip/api-reference/evm/v1.6.1/burn-mint-token-pool

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

<Aside type="note" title="Integrate Chainlink CCIP v1.6.1 into your project">
  <Tabs sharedStore="ccip-v1-6-1-package" client:visible>
    <Fragment slot="tab.1">npm</Fragment>
    <Fragment slot="tab.2">yarn</Fragment>
    <Fragment slot="tab.3">foundry</Fragment>

    <Fragment slot="panel.1">
      If you use [NPM](https://www.npmjs.com/), install the [@chainlink/contracts-ccip NPM package](https://www.npmjs.com/package/@chainlink/contracts-ccip):

      ```shell
      npm install @chainlink/contracts-ccip@1.6.1
      ```
    </Fragment>

    <Fragment slot="panel.2">
      If you use [Yarn](https://yarnpkg.com/), install the [@chainlink/contracts-ccip NPM package](https://www.npmjs.com/package/@chainlink/contracts-ccip):

      ```shell
      yarn add @chainlink/contracts-ccip@1.6.1
      ```
    </Fragment>

    <Fragment slot="panel.3">
      If you use [Foundry](https://book.getfoundry.sh/), install the package:

      ```shell
      forge install smartcontractkit/chainlink-ccip@bbab0601244ce58e2ffac0dbc178a80aab1fa4a3
      ```
    </Fragment>
  </Tabs>
</Aside>

## BurnMintTokenPool

A specialized token pool implementation that handles the minting and burning of third-party tokens using the standard `burn(amount)` function.

[Git Source](https://github.com/smartcontractkit/chainlink-ccip/tree/contracts-ccip-v1.6.1/chains/evm/contracts/pools/BurnMintTokenPool.sol)

**Inherits:**

- [BurnMintTokenPoolAbstract](/ccip/api-reference/evm/v1.6.1/burn-mint-token-pool-abstract)
- [ITypeAndVersion](/ccip/api-reference/evm/v1.6.1/i-type-and-version)

> \*\*NOTE\*\*
>
>
>
> Key characteristics of this token pool:
>
> - Manages minting and burning operations for third-party tokens
> - Implements configurable whitelisting for transaction originators:
>   - Can accept transactions from any address
>   - Can restrict to only whitelisted addresses
> - Whitelisting configuration is permanent after deployment
> - Requires adjustable burner/minter roles in the token contract if pool redeployment is anticipated
> - Uses the standard `burn(amount)` function for token burning operations

## State Variables

### typeAndVersion

```solidity
string public constant override typeAndVersion = "BurnMintTokenPool 1.6.1";
```

> \*\*NOTE\*\*
>
>
>
> A constant identifier that specifies the contract type and version number for interface detection and version
> management.

**Returns**

| Type     | Description                                       |
| -------- | ------------------------------------------------- |
| `string` | The contract identifier "BurnMintTokenPool 1.6.1" |

## Functions

### \_lockOrBurn

Internal function that implements the token burning logic for the `BurnMintTokenPool`.

```solidity
function _lockOrBurn(uint256 amount) internal virtual override;
```

> \*\*NOTE\*\*
>
>
>
> Overrides the virtual [`_lockOrBurn`](/ccip/api-reference/evm/v1.6.1/token-pool#_lockorburn) function from the base `TokenPool` contract:
>
> - Provides the specific "burn" implementation for the `BurnMintTokenPool`.
> - Calls the token's `burn(amount)` function directly
> - Requires the pool to have sufficient burning permissions

**Parameters**

| Name     | Type      | Description                  |
| -------- | --------- | ---------------------------- |
| `amount` | `uint256` | The number of tokens to burn |

### constructor

```solidity
constructor(
  IBurnMintERC20 token,
  uint8 localTokenDecimals,
  address[] memory allowlist,
  address rmnProxy,
  address router
) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router);
```

> \*\*NOTE\*\*
>
>
>
> Initializes the token pool with its configuration parameters:
>
> - Sets up the token contract reference
> - Configures decimal precision for local tokens
> - Establishes the initial whitelist of authorized addresses
> - Links to the RMN proxy and router contracts

**Parameters**

| Name                 | Type             | Description                                          |
| -------------------- | ---------------- | ---------------------------------------------------- |
| `token`              | `IBurnMintERC20` | The third-party token contract to manage             |
| `localTokenDecimals` | `uint8`          | The decimal precision for the local token            |
| `allowlist`          | `address[]`      | Initial list of addresses authorized to use the pool |
| `rmnProxy`           | `address`        | Address of the RMN proxy contract                    |
| `router`             | `address`        | Address of the router contract                       |