<p>Mining software and a wallet do this for you.<br>
Of course you would have to modify the software, so instead of repeating hashing you just submit your solution.<br>
Nothing currently exists that is ready for your scenario.</p>

<p>Also, have a look at these two bitcoin RPC calls:    </p>

<pre><code>getblocktemplate
submitblock "hexdata"
</code></pre>

CC BY-SA 3.0
2017-07-21T22:35:56.433Z
2017-07-21T22:41:01.880Z
2017-07-21T22:41:01.880Z
Albert S
<p>Suppose I posses quantum computer, which can reverse <code>SHA256</code> in one microsecond. The only thing I want then -- is to mine one block. After that I will throw away my computer and go to Hawaii. </p>

<p>Hence the question is: how to get current block from Bitcoin network, and how to send my work back to it?</p>

<p>May be there are some linux commands like</p>

<pre><code>downloadcurrentblock &gt; data.dat

upploadresults &lt; data2.dat
</code></pre>

<p>I need something maximally simple to do exactly this: receive input information and send output information.</p>

<network>
How to get data, required to mine one block and how to send results back to BC network?
Dims
# How to get data, required to mine one block and how to send results back to BC network?

(Asked by: username_0 on 2017-07-21)

Suppose I posses quantum computer, which can reverse `SHA256` in one microsecond. The only thing I want then -- is to mine one block. After that I will throw away my computer and go to Hawaii.

Hence the question is: how to get current block from Bitcoin network, and how to send my work back to it?

May be there are some linux commands like

```
downloadcurrentblock > data.dat

upploadresults < data2.dat

```

I need something maximally simple to do exactly this: receive input information and send output information.

**Tags:** network


---

## 1 answers

### Answer by username_1 on 2017-07-21. Score: 1

Mining software and a wallet do this for you.  
Of course you would have to modify the software, so instead of repeating hashing you just submit your solution.  
Nothing currently exists that is ready for your scenario.

Also, have a look at these two bitcoin RPC calls:

```
getblocktemplate
submitblock "hexdata"

```


---

