# validateContract

[**cli/utils**](..) • **Docs**

***

[near-sdk-js v2.0.0](../../../packages) / [cli/utils](..) / validateContract

## Function: validateContract()

> **validateContract**(`contractPath`, `verbose`): `Promise`<`boolean`>

Validates the contract by checking that all parameters are initialized in the constructor. Works only for contracts written in TypeScript.

### Parameters

• **contractPath**: `string`

Path to the contract.

• **verbose**: `boolean` = `false`

Whether to print verbose output.

### Returns

`Promise`<`boolean`>

### Defined in

[packages/near-sdk-js/src/cli/utils.ts:62](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/cli/utils.ts#L62)
