<ol>
<li>Read the documentation please: <a href="https://en.bitcoin.it/wiki/Stratum_mining_protocol#mining.submit" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Stratum_mining_protocol#mining.submit</a></li>
</ol>

<p>A quote from it:</p>

<blockquote>
  <p>mining.submit  </p>
  
  <p><code>mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce")</code>  </p>
  
  <p>Miners submit shares using the method "mining.submit". Client submissions contain:  </p>
  
  <p>Worker Name.<br>
  Job ID.<br>
  ExtraNonce2.<br>
  nTime.<br>
  nOnce.  </p>
  
  <p>Server response is result: true for accepted, false for rejected (or you may get an error with more details).</p>
</blockquote>

<ol start="2">
<li>You write:

<blockquote>
  <p>What next do I need to do with this data?</p>
</blockquote></li>
</ol>

<p>You could check the poolserver for example code: <a href="https://github.com/GOSTSec/poolserver/blob/master/src/server/poolserver/Stratum/Client.h#L82" rel="nofollow noreferrer">https://github.com/GOSTSec/poolserver/blob/master/src/server/poolserver/Stratum/Client.h#L82</a></p>

CC BY-SA 3.0
2017-06-05T21:15:16.733Z
I know about `mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce")`
Thanks for example. I watch it later.
undefined
CC BY-SA 3.0
2017-06-05T20:25:15.523Z
2017-06-17T12:53:19.610Z
2017-06-17T12:53:19.610Z
Eugene Gr. Philippov
<p>I write some stratum server, for mining in the pool. The answer goes from the client to my server: </p>

<blockquote>
  <p><code>{"method": "mining.submit", "params": ["g", "06a8", "01", "1d025f83",
  "c03f38ac"], "id":4}</code></p>
</blockquote>

<p>What should I do with this in my stratum server? What next do I need to do with this data?
(I write in Plain C)</p>

<json-rpc><development><stratum>
What should a stratum server do with "mining.submit"?
undefined
# What should a stratum server do with "mining.submit"?

(Asked by: username_0 on 2017-06-02)

I write some stratum server, for mining in the pool. The answer goes from the client to my server:

> `{"method": "mining.submit", "params": ["g", "06a8", "01", "1d025f83",
> "c03f38ac"], "id":4}`

What should I do with this in my stratum server? What next do I need to do with this data?
(I write in Plain C)

**Tags:** json-rpc, development, stratum


---

## 1 answers

### Answer by username_1 on 2017-06-05. Score: 0 | Accepted answer

1. Read the documentation please: <https://en.bitcoin.it/wiki/Stratum_mining_protocol#mining.submit>

A quote from it:

> mining.submit
>
> `mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce")`
>
> Miners submit shares using the method "mining.submit". Client submissions contain:
>
> Worker Name.  
> Job ID.  
> ExtraNonce2.  
> nTime.  
> nOnce.
>
> Server response is result: true for accepted, false for rejected (or you may get an error with more details).

2. You write:
   > What next do I need to do with this data?

You could check the poolserver for example code: <https://github.com/GOSTSec/poolserver/blob/master/src/server/poolserver/Stratum/Client.h#L82>

> **Comments:**
> **username_0**: I know about `mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce")` Thanks for example. I watch it later.  

---

