> For the complete documentation index, see [llms.txt](https://docs.bloxchain.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloxchain.app/platform-bloxchain.app/contracts/deploy.md).

# Deploy a contract

**Scope:** Apps desktop — creates a **new** on-chain Account-style workspace (CopyBlox clone).

Use when you need a **new** governed contract. Your wallet signs and pays deployment gas.

**Time:** \~15 min (network dependent)

## Before you begin

* [Signed in](/platform-bloxchain.app/account/sign-in.md)
* [Wallet connected](/platform-bloxchain.app/account/connect-wallet.md) on the target **testnet** with gas
* Know your network — deployment uses the **connected wallet’s chain**

## Steps

1. Open **Apps desktop** (`/`).
2. In App Explorer, choose **Deploy** → **Deploy new workspace**.
3. Fill the deploy dialog (see [fields below](#deploy-dialog-fields)).
4. Sign the deployment transaction in your wallet.
5. When confirmed, open the new app tab.

## Deploy dialog fields

The **Deploy new workspace** modal sets on-chain **SecureOwnable** at clone time. All three role addresses must be **different** non-zero wallets.

| Field                | What to enter                                                                                    |
| -------------------- | ------------------------------------------------------------------------------------------------ |
| **Network**          | Read-only — must match your connected wallet chain                                               |
| **Wallet**           | Connected deployer (pays gas)                                                                    |
| **Owner**            | Admin authority (`0x…`) — often your deployer wallet                                             |
| **Broadcaster**      | Wallet that may submit signed meta-transactions on-chain (`0x…`)                                 |
| **Recovery**         | Emergency recovery wallet (`0x…`) — [test on testnet](/platform-bloxchain.app/recovery.md) first |
| **Time-lock**        | Duration before delayed approvals can finalize (e.g. 1 hour) — must be > 0                       |
| **Deploy factory**   | CopyBlox factory address for your network (`0x…`) — often pre-filled from network preset         |
| **Template address** | Account implementation / template (`0x…`) — often pre-filled from network preset                 |
| **Display name**     | Optional label for the Apps desktop                                                              |

Validation errors you may see: missing factory/template, identical Owner/Broadcaster/Recovery, or zero time-lock.

> If you **imported** an existing deployment instead, Owner/Broadcaster/Recovery were set at deploy time — verify under **Deployment → Security** rather than re-entering here.

## Verify

* Block explorer shows the new **clone** workspace at the recorded address.
* **Deployment → Security** shows the Owner, Broadcaster, Recovery, and timelock you entered.

## Next steps

* [Use cases & quick setup](/platform-bloxchain.app/use-cases.md) — register operations and roles (may overlap with values set at deploy)
* [Connect your application](/platform-bloxchain.app/overview-1/connect-your-application.md)

## Related

* [Import a contract](/platform-bloxchain.app/contracts/import.md) — existing on-chain address
* [Import vs deploy](/platform-bloxchain.app/tips.md#import-vs-deploy)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bloxchain.app/platform-bloxchain.app/contracts/deploy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
