# Deploy Contract A4

#### Endpoint

<mark style="color:green;">`POST`</mark> `/api/v1/ERC721/{network}/deploy-contract-A4`

> Executes deployment of an ERC-721 smart contract that issues tokens based on the A4 tokenization model.

{% hint style="info" %}
Check the [Networks](https://developer.xyxyx.pro/getting-started/networks) section for replacing the `{network}` text in the Endpoint URL.
{% endhint %}

***

**Headers**

| Name          | Value                                                                                                                                               |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Content-Type  | `application/json`                                                                                                                                  |
| Authorization | [Xyxyx API Key](https://developer.xyxyx.pro/getting-started/xyxyx-api-keys) or [XIN](https://docs.xyxyx.pro/protocol/xyxyx/xyxyx-issuer-nodes-xins) |

***

**Body**

<table><thead><tr><th width="239">Name</th><th width="258">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td><td>Defines the token name</td></tr><tr><td><code>ticker</code></td><td>string</td><td>Defines the token ticker</td></tr><tr><td><code>mintPrice</code></td><td>string</td><td>Defines the token mint price</td></tr><tr><td><code>supply</code></td><td>integer</td><td>Defines the token supply</td></tr><tr><td><code>tokenText</code></td><td>string</td><td>The text content that is stamped in the token output</td></tr><tr><td><code>metadata</code></td><td>string</td><td>The text content that is inserted in the token metadata, stored within its SVG file</td></tr><tr><td><code>walletPrivateKey</code></td><td>string</td><td>Deployer private key for authorizing transaction</td></tr><tr><td><code>restrictToOwner</code></td><td>boolean (optional), defaults to <code>false</code></td><td>Defines if minting is restricted to contract owner</td></tr><tr><td><code>documentTitle</code></td><td>string (optional)</td><td>Document title, displayed on the top of the first page</td></tr><tr><td><code>documentSubtitle</code></td><td>string (optional)</td><td>Document subtitle, displayed below the document title</td></tr><tr><td><code>fontFamily</code></td><td>string (optional), defaults to <code>sans-serif</code></td><td>Font-family that is used in the token output text</td></tr></tbody></table>

***

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "status": "Contract deployed at address: {contractAddress}`",
  "hash": "1x111...",
  "deploymentAddress": "0x32a...",
  "adressUrl": "https://etherscan.io/address/{contractAddress}",
  "deployerAddress": "0x567..."
}
```

{% endtab %}

{% tab title="400" %}

```javascript
{
  "success": false,
  "status": "Failed to deploy contract: {error.message}"
}
```

{% endtab %}

{% tab title="401" %}

```javascript
{
  "success": false,
  "status": "The wallet does not own any valid Xyxyx API Key or XIN",
}
```

{% endtab %}

{% tab title="429" %}

```javascript
{
  "success": false,
  "status": "This wallet has already consumed its 24-hour request quota"
}
```

{% endtab %}
{% endtabs %}
