<p>Ok, took some doing but I figured it out!</p>

<p>It seems there a lot of which do not have submitblock in the source. Whether this is intended (mining advantages vs noobs) or just pure incompetence is not sure, but the solution requires minimal changes to the source.</p>

<p>I found this which should help if you're having this issue: <a href="https://github.com/earthcoinproject/earthcoin/commit/0b862e499e05386e333563656f84e99bad1b0290" rel="nofollow">https://github.com/earthcoinproject/earthcoin/commit/0b862e499e05386e333563656f84e99bad1b0290</a></p>

<p>Hope this helps another frustrated developer :)</p>

CC BY-SA 3.0
2014-03-21T23:22:43.833Z
2014-03-21T23:22:43.833Z
Mark
<p>I'm trying to figure out how I'd submit a block in many alt-coins. I originally found this issue in bbqcoin but have since found it in many others. I have bbqcoin (and others) installed from gihub source on Ubuntu 12.04.4</p>

<pre><code>root@ubuntu-hp:~# bbqcoind help
addmultisigaddress &lt;nrequired&gt; &lt;'["key","key"]'&gt; [account]
backupwallet &lt;destination&gt;
dumpprivkey &lt;bbqcoinaddress&gt;
encryptwallet &lt;passphrase&gt;
getaccount &lt;bbqcoinaddress&gt;
getaccountaddress &lt;account&gt;
getaddressesbyaccount &lt;account&gt;
getbalance [account] [minconf=1]
getblock &lt;hash&gt; [decompositions]
getblockcount
getblockhash &lt;index&gt;
getconnectioncount
getdifficulty
getgenerate
gethashespersec
getinfo
getmemorypool [data]
getmininginfo
getnetworkhashps [blocks]
getnewaddress [account]
getpeerinfo
getrawmempool
getreceivedbyaccount &lt;account&gt; [minconf=1]
getreceivedbyaddress &lt;bbqcoinaddress&gt; [minconf=1]
gettransaction &lt;txid&gt; [decompositions]
getwork [data]
getworkex [data, coinbase]
help [command]
importprivkey &lt;bbqcoinprivkey&gt; [label]
keypoolrefill
listaccounts [minconf=1]
listreceivedbyaccount [minconf=1] [includeempty=false]
listreceivedbyaddress [minconf=1] [includeempty=false]
listsinceblock [blockhash] [target-confirmations]
listtransactions [account] [count=10] [from=0]
move &lt;fromaccount&gt; &lt;toaccount&gt; &lt;amount&gt; [minconf=1] [comment]
sendfrom &lt;fromaccount&gt; &lt;tobbqcoinaddress&gt; &lt;amount&gt; [minconf=1] [comment] [comment-to]
sendmany &lt;fromaccount&gt; {address:amount,...} [minconf=1] [comment]
sendrawtx &lt;hex string&gt;
sendtoaddress &lt;bbqcoinaddress&gt; &lt;amount&gt; [comment] [comment-to]
setaccount &lt;bbqcoinaddress&gt; &lt;account&gt;
setgenerate &lt;generate&gt; [genproclimit]
setmininput &lt;amount&gt;
settxfee &lt;amount&gt;
signmessage &lt;bbqcoinaddress&gt; &lt;message&gt;
stop
validateaddress &lt;bbqcoinaddress&gt;
verifymessage &lt;bbqcoinaddress&gt; &lt;signature&gt; &lt;message&gt;
</code></pre>

<p>Best I can figure, the closest thing would be sendrawtx.. but that can't be right, can it? I'm thinking at this point I should have taken advantage of the checkout feature, but it's hard to tell what version each coin is on.</p>

<p>Edit: I've found that many coins have this issue as described here: <a href="https://github.com/Crypto-Expert/stratum-mining/issues/72" rel="nofollow">https://github.com/Crypto-Expert/stratum-mining/issues/72</a></p>

<p>So looks like the solution is to build it yourself, there is a hail-mary workaround which might do the trick but is heavily undocumented. I found reference that you can submit a block through getblocktemplate, <a href="https://github.com/moopless/stratum-mining-litecoin/issues/48" rel="nofollow">https://github.com/moopless/stratum-mining-litecoin/issues/48</a></p>

<p>When trying with some data I go a json parse error.. has anyone used getblocktemplate submit?</p>

<altcoin><bitcoin-core-development><sending>
No submitblock in altcoin?
Mark
# No submitblock in altcoin?

(Asked by: username_0 on 2014-03-20)

I'm trying to figure out how I'd submit a block in many alt-coins. I originally found this issue in bbqcoin but have since found it in many others. I have bbqcoin (and others) installed from gihub source on Ubuntu 12.04.4

```
root@ubuntu-hp:~# bbqcoind help
addmultisigaddress <nrequired> <'["key","key"]'> [account]
backupwallet <destination>
dumpprivkey <bbqcoinaddress>
encryptwallet <passphrase>
getaccount <bbqcoinaddress>
getaccountaddress <account>
getaddressesbyaccount <account>
getbalance [account] [minconf=1]
getblock <hash> [decompositions]
getblockcount
getblockhash <index>
getconnectioncount
getdifficulty
getgenerate
gethashespersec
getinfo
getmemorypool [data]
getmininginfo
getnetworkhashps [blocks]
getnewaddress [account]
getpeerinfo
getrawmempool
getreceivedbyaccount <account> [minconf=1]
getreceivedbyaddress <bbqcoinaddress> [minconf=1]
gettransaction <txid> [decompositions]
getwork [data]
getworkex [data, coinbase]
help [command]
importprivkey <bbqcoinprivkey> [label]
keypoolrefill
listaccounts [minconf=1]
listreceivedbyaccount [minconf=1] [includeempty=false]
listreceivedbyaddress [minconf=1] [includeempty=false]
listsinceblock [blockhash] [target-confirmations]
listtransactions [account] [count=10] [from=0]
move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
sendfrom <fromaccount> <tobbqcoinaddress> <amount> [minconf=1] [comment] [comment-to]
sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
sendrawtx <hex string>
sendtoaddress <bbqcoinaddress> <amount> [comment] [comment-to]
setaccount <bbqcoinaddress> <account>
setgenerate <generate> [genproclimit]
setmininput <amount>
settxfee <amount>
signmessage <bbqcoinaddress> <message>
stop
validateaddress <bbqcoinaddress>
verifymessage <bbqcoinaddress> <signature> <message>

```

Best I can figure, the closest thing would be sendrawtx.. but that can't be right, can it? I'm thinking at this point I should have taken advantage of the checkout feature, but it's hard to tell what version each coin is on.

Edit: I've found that many coins have this issue as described here: <https://github.com/Crypto-Expert/stratum-mining/issues/72>

So looks like the solution is to build it yourself, there is a hail-mary workaround which might do the trick but is heavily undocumented. I found reference that you can submit a block through getblocktemplate, <https://github.com/moopless/stratum-mining-litecoin/issues/48>

When trying with some data I go a json parse error.. has anyone used getblocktemplate submit?

**Tags:** altcoin, bitcoin-core-development, sending


---

## 1 answers

### Answer by username_0 on 2014-03-21. Score: 0 | Accepted answer

Ok, took some doing but I figured it out!

It seems there a lot of which do not have submitblock in the source. Whether this is intended (mining advantages vs noobs) or just pure incompetence is not sure, but the solution requires minimal changes to the source.

I found this which should help if you're having this issue: <https://github.com/earthcoinproject/earthcoin/commit/0b862e499e05386e333563656f84e99bad1b0290>

Hope this helps another frustrated developer :)


---

