> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# getCreateAddress

```ts theme={null}
function getCreateAddress(tx): string
```

Returns the address that would result from a `CREATE` for `tx`.

This can be used to compute the address a contract will be deployed to by an EOA when sending a deployment
transaction (i.e. when the `to` address is `null`).

This can also be used to compute the address a contract will be deployed to by a contract, by using the contract's
address as the `to` and the contract's nonce.

## Parameters

| Parameter  | Type                                                     | Description                  |
| :--------- | :------------------------------------------------------- | :--------------------------- |
| `tx`       | `object`                                                 | The transaction object.      |
| `tx.data`  | `null` \| `string`                                       | The data of the transaction. |
| `tx.from`  | `string`                                                 | The address of the sender.   |
| `tx.nonce` | [`BigNumberish`](/sdk/content/type-aliases/BigNumberish) | The nonce of the sender.     |

## Returns

`string`

## Example

```js theme={null}
from = '0x8ba1f109551bD432803012645Ac136ddd64DBA72';
nonce = 5;

getCreateAddress({ from, nonce });
```

## Source

[address/contract-address.ts:34](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/address/contract-address.ts#L34)
