# Create contract

## **createcollection** <a href="#createcollection" id="createcollection"></a>

Create a new contract.

## Basic Information <a href="#basic-info" id="basic-info"></a>

<table><thead><tr><th width="134">Property</th><th width="279">Detail</th></tr></thead><tbody><tr><td>URL</td><td><code>/api/v1/createcollection</code></td></tr><tr><td>Method</td><td>POST</td></tr></tbody></table>

## **R**equest parameter <a href="#request" id="request"></a>

<table><thead><tr><th width="166">Parameter</th><th width="101">Type</th><th width="104">Required</th><th width="378">Detail</th></tr></thead><tbody><tr><td>wallet_address</td><td>str</td><td>yes</td><td>生成するコレクションの所有者</td></tr><tr><td>name</td><td>str</td><td>yes</td><td>生成するコレクションの名称</td></tr><tr><td>blockchain</td><td>str</td><td>yes</td><td>生成先のブロックチェーン</td></tr><tr><td>description</td><td>str</td><td>No*</td><td>*Required only for <code>Solana</code>, <code>Solana-testnet</code></td></tr><tr><td>image</td><td>str</td><td>No*</td><td>*Required only for <code>Solana</code>, <code>Solana-testnet</code></td></tr><tr><td>is_locked</td><td>boolean</td><td>No</td><td>If true is specified, the NFT generated by the contract becomes a SoulBound Token. False if not specified.</td></tr><tr><td>enable_api</td><td>boolean</td><td>No</td><td>If true is specified, NFT creation is possible via API. If not specified, true.</td></tr><tr><td>enable_transfer</td><td>boolean</td><td>No</td><td>If true is specified, NFT can be transferred via API. False if not specified.</td></tr></tbody></table>

## Blockchains that can be specified in the `blockchain` parameter <a href="#blockchain" id="blockchain"></a>

Please specify the name of the network item on the [Supported blockchain](https://docs.nftgarden.app/en/supported-blockchains) page.

## Sample requests <a href="#sample-request" id="sample-request"></a>

```json
{
  "wallet_address": "111111111111111111111111111111111111111111",
  "blockchain": "solana",
  "name": "contract name 1",
  "description": "description of contract name 1",
  "image": "https://my.nftgarden.app/image.png"
}
```

## Example of successful response <a href="#response" id="response"></a>

```json
{
  "request": {
      "name": "contract name 1",
      "blockchain": "solana",
      "enable_api": true,
      "enable_transfer": false,
      "wallet_address": "111111111111111111111111111111111111111111",
      "description": "description of contract name 1",
      "image": "https://my.nftgarden.app/image.png"
  },
  "response": {
      "transaction_gdn_id": "1bd77cf7-a5ec-462c-ad06-faf942fefe21",
      "accepted_date": "2022-12-09 17:59:16"
  }
}
```

## Example of response in case of failure(status code 400) <a href="#error" id="error"></a>

```json
{
    "error": {
        "title": "Request Validation Error",
        "message": "blockchain field required"
    }
}
```
