# CCIP v1.6.1 ITypeAndVersion Interface API Reference
Source: https://docs.chain.link/ccip/api-reference/evm/v1.6.1/i-type-and-version

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

> **NOTE: This contract is now available in Chainlink Contracts v1.4.0**
>
> npm
> yarn
> foundry
>
> If you use [NPM](https://www.npmjs.com/), install the [@chainlink/contracts NPM package](https://www.npmjs.com/package/@chainlink/contracts/v/1.4.0):
>
> ```shell
> npm install @chainlink/contracts@1.4.0
> ```
>
> > **NOTE**
> >
> > Note: This contract is now maintained under the [@chainlink/contracts](https://www.npmjs.com/package/@chainlink/contracts) package instead of [@chainlink/contracts-ccip](https://www.npmjs.com/package/@chainlink/contracts-ccip).
>
> If you use [Yarn](https://yarnpkg.com/), install the [@chainlink/contracts NPM package](https://www.npmjs.com/package/@chainlink/contracts/v/1.4.0):
>
> ```shell
> yarn add @chainlink/contracts@1.4.0
> ```
>
> > **NOTE**
> >
> > Note: This contract is now maintained under the [@chainlink/contracts](https://www.npmjs.com/package/@chainlink/contracts) package instead of [@chainlink/contracts-ccip](https://www.npmjs.com/package/@chainlink/contracts-ccip).
>
> If you use [Foundry](https://book.getfoundry.sh/), install the package:
>
> ```shell
> forge install smartcontractkit/chainlink-evm@e06cc226086ad91cfede63e96c63e5b3440c9801
> ```
>
> > **NOTE**
> >
> > Note: This contract is now maintained in the [chainlink-evm](https://github.com/smartcontractkit/chainlink-evm) repository instead of the [chainlink-ccip](https://github.com/smartcontractkit/chainlink-ccip) repository.

## ITypeAndVersion

An interface that provides type and version information for contracts.

[Git Source](https://github.com/smartcontractkit/chainlink-evm/blob/contracts-v1.4.0/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol)

## Functions

### typeAndVersion

Returns the type and version of the contract.

```solidity
function typeAndVersion() external pure returns (string memory);
```

**Returns**

| Type     | Description                           |
| -------- | ------------------------------------- |
| `string` | The type and version of the contract. |