# SUI prover Nonce

<mark style="color:green;">`POST`</mark> `https://{auth-domain}/v1.0/sui/prove/nonce`

#### Headers

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

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

{
    "return": 0,
    "message": "success",
    "value": {
        "Data": {
            "nonce": "ktK9CMsBcKrxAFO55zJ3cyP6kjI",
            "randomness": "249413996864903195759089670247231550196",
            "epoch": 425,
            "maxEpoch": 427,
            "estimatedExpiration": 1720727792223
        }
    }
}
```
{% endtab %}

{% tab title="200: OK 실패" %}
```javascript
{
    "return": 500,
    "message": "internal server error"
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Body" %}
```
{
  "ephemeralPublicKey" : "AAjgphymeAsqZ+Si3+gmLieAxZ+p8bQoHDkLCkD+/srd"
}

```
{% endtab %}

{% tab title="Example Curl" %}
```
curl --location 'http://localhost:51000/m1.0/sui/prove/nonce' \
--header 'Content-Type: application/json' \
--data '{
  "ephemeralPublicKey" : "AAjgphymeAsqZ+Si3+gmLieAxZ+p8bQoHDkLCkD+/srd1"
}'
```
{% endtab %}

{% tab title="Response Value" %}
<table><thead><tr><th width="226.13953488372093">key</th><th>data type</th><th>desc.</th></tr></thead><tbody><tr><td>Data</td><td>object</td><td></td></tr><tr><td>nonce</td><td>string</td><td></td></tr><tr><td>randomness</td><td>string</td><td></td></tr><tr><td>epoch</td><td>int64</td><td></td></tr><tr><td>maxEpoch</td><td>int64</td><td></td></tr><tr><td>estimatedExpiration</td><td>int64</td><td></td></tr></tbody></table>
{% endtab %}

{% tab title="Result Code" %}
| return | message               | desc. |
| ------ | --------------------- | ----- |
| 0      | success               | 성공    |
| 500    | internal server error | 내부 오류 |
|        |                       |       |
{% endtab %}
{% endtabs %}
