# NFT 생성

<mark style="color:blue;">`GET`</mark> `https://{pick-domain}/v1.0/pick/nft/minting`

#### Query Parameters

| Name                                         | Type  | Description |
| -------------------------------------------- | ----- | ----------- |
| planet\_id<mark style="color:red;">\*</mark> | int64 | planet id   |

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer eyJhbGciOiJ..... |

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

```json
{
    "return": 0,
    "message": "success",
    "value": {
        "planet_id": 1,
        "host": "wss://dev.onbuff.com:21000/wss"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```powershell
curl --location --request POST 'https://dev.onbuff.com:51101/v1.0/pick/nft/minting' \
--header 'Authorization: Bearer eyJhbGciOiJ....' \
--header 'Content-Type: application/json' \
--data-raw '{
    "planet_id" :1
}'
```

{% endtab %}

{% tab title="Response Value" %}

<table><thead><tr><th width="173.33333333333331">key</th><th width="180.93023255813955">data type</th><th>desc.</th></tr></thead><tbody><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>
{% endtab %}

{% tab title="Result Code" %}

<table><thead><tr><th width="138.66666666666666">return</th><th>message</th><th>desc.</th></tr></thead><tbody><tr><td>0</td><td>success</td><td>성공</td></tr><tr><td>71205</td><td>Invalid 'planet_id'</td><td>유효한 planet_id 가 아님</td></tr><tr><td>70006</td><td>Failed to load account energy</td><td>에너지 보유량 확인 실패</td></tr><tr><td>71605</td><td>Lack of energy to mint</td><td>민팅에 필요한 에너지량 부족</td></tr></tbody></table>
{% endtab %}
{% endtabs %}
