> For the complete documentation index, see [llms.txt](https://docs.indexcoop.com/index-coop-community-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.indexcoop.com/index-coop-community-handbook/protocol/index-protocol/core-contracts/set-token-creator.md).

# Set Token Creator

The Set Token Creator is a smart contract used to deploy new [SetToken](/index-coop-community-handbook/protocol/index-protocol/core-contracts/set-token.md) contracts. The SetTokenCreator is a Factory contract that is enabled by the [Controller](/index-coop-community-handbook/protocol/index-protocol/core-contracts/controller.md) to create and register new SetTokens.

## Select Methods

### create()

`function create(address[] memory _components, int256[] memory _units, address[] memory _modules, address _manager, string memory _name, string memory _symbol) external returns (address)`

Creates a SetToken smart contract and registers the SetToken with the controller. The SetTokens are composed of positions that are instantiated as DEFAULT (positionState = 0) state.

| Parameter Name | Type       | Description                                                               |
| -------------- | ---------- | ------------------------------------------------------------------------- |
| \_components   | address\[] | List of addresses of components for initial positions                     |
| \_units        | uint256\[] | List of units. Each unit is the # of components per 10^18 of a SetToken   |
| \_modules      | address\[] | List of modules to enable. All modules must be approved by the Controller |
| \_manager      | address    | Address of the manager                                                    |
| \_name         | string     | Name of the SetToken                                                      |
| \_symbol       | string     | Symbol of the SetToken                                                    |

| Return Name     | Type    | Description                           |
| --------------- | ------- | ------------------------------------- |
| setTokenAddress | address | Address of the newly created SetToken |


---

# 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.indexcoop.com/index-coop-community-handbook/protocol/index-protocol/core-contracts/set-token-creator.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.
