> For the complete documentation index, see [llms.txt](https://docs.oswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oswap.io/oswap-0.1.0/protocol/factory/create.md).

# Create

Deploy a new pair AA and initialize it.

### **Arguments**

* **create** `data` *required*\
  Must be defined to trigger the "create" function
* **asset0** `data` *required*\
  Asset unit id of the first asset
* **asset1** `data` *required*

  Asset unit id of the second asset
* **address** `data` *required*\
  Address of the pair AA to create

### **Example**

```javascript
{
  trigger: {
    outputs: {
      base: 10000
    }
    data: {
      create: '1',
      asset0: 'base',
      asset1: 'WhsD5Y/1NeKROgQojGwfe9EBC7NH4KnAk4CorCrVRhs=',
      address: 'BWHQYDF63RASO5PNCKWDRUHWQJNJPMXN'
    }
  }
}
```

### Retur**ns**

```javascript
{
  responseVars: {
    type: 'create'
  }
}
```
