# CloneFactory

### createClone

```solidity
function createClone(address target) internal returns (address result)
```

Create a clone of the vault's code from a template and deploy it on the blockchain.

#### Parameters:

<table data-full-width="false"><thead><tr><th width="160">Variable</th><th width="139">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>target</code></td><td>address</td><td>Address of the template to be cloned.</td></tr></tbody></table>

#### Return Value:

<table data-full-width="false"><thead><tr><th width="156">Variable</th><th width="142">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>result</code></td><td>address</td><td>Address of the new vault that has cloned and deployed.</td></tr></tbody></table>


---

# Agent Instructions: 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:

```
GET https://learn.charm.fi/charm/technical-references/core/clonefactory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
