# 지갑등록

<mark style="color:green;">`POST`</mark> `https://{dashboard-domain}/v1.0/db/me/wallet/regist`

#### Headers

| Name                                            | Type   | Description                 |
| ----------------------------------------------- | ------ | --------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{web-access-token}} |

#### Request Body

| Name                                               | Type   | Description                           |
| -------------------------------------------------- | ------ | ------------------------------------- |
| wallet\_type\_id<mark style="color:red;">\*</mark> | String | meta>wallet\_types중 하나                |
| wallet\_address<mark style="color:red;">\*</mark>  | String | wallet address                        |
| base\_coin\_id<mark style="color:red;">\*</mark>   | int    | base\_coin\_id                        |
| referrer\_inno\_uid                                | string | <p>추천인 InnoUID</p><p>없으면 공백 or 생략</p> |

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

````json
```json
{
    "return": 0,
    "message": "success"
}
```
````

{% endtab %}
{% endtabs %}

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

```

curl --location --request POST 'https://localhost:51031/v1.0/db/me/wallet/regist' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsI....' \
--data-raw ''
```

{% endtab %}

{% tab title="Response Value" %}

{% endtab %}

{% tab title="Result Code" %}

<table><thead><tr><th>return</th><th>message</th><th>desc.</th></tr></thead><tbody><tr><td>0</td><td>success</td><td>성공</td></tr><tr><td>500</td><td>internal server error</td><td></td></tr><tr><td>34101</td><td>Unsupported wallet.</td><td><pre><code>지원하지 않는 지갑이름
</code></pre></td></tr><tr><td>34102</td><td>already have a registered wallet</td><td><pre class="language-postman_json"><code class="lang-postman_json">이미 지갑에 등록된 주소가 있음
</code></pre></td></tr><tr><td>34103</td><td>already have a registered wallet</td><td><pre class="language-postman_json"><code class="lang-postman_json">이미 지갑에 등록된 주소가 있음
</code></pre></td></tr><tr><td>34104</td><td>Wallet already registered on another account</td><td><pre class="language-postman_json"><code class="lang-postman_json">다른 지갑에서 사용중인 지갑주소
</code></pre></td></tr><tr><td>19000</td><td>Internal DB error</td><td></td></tr></tbody></table>
{% endtab %}
{% endtabs %}
