# asContractAddress

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-types](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types.md) / asContractAddress

# Function: asContractAddress()

> **asContractAddress**(`address`): [`ContractAddress`](#)

Constructs a branded contract address from a given string value.

## Parameters[​](#parameters "Direct link to Parameters")

### address[​](#address "Direct link to address")

`string`

A string value representing a contract address.

## Returns[​](#returns "Direct link to Returns")

[`ContractAddress`](#)

A [ContractAddress](#) constructed from `address`.
