<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Coinbaser</id>
	<title>Coinbaser - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Coinbaser"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Coinbaser&amp;action=history"/>
	<updated>2026-05-15T10:23:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Coinbaser&amp;diff=4073&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Beginning with bitcoind 0.6 (not yet released), you will be able to control the creation of coinbase content in blocks you mine. This is split into two parts:  == Coinbase...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Coinbaser&amp;diff=4073&amp;oldid=prev"/>
		<updated>2019-05-02T04:35:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Beginning with &lt;a href=&quot;/Bitcoind&quot; title=&quot;Bitcoind&quot;&gt;bitcoind&lt;/a&gt; 0.6 (not yet released), you will be able to control the creation of coinbase content in blocks you mine. This is split into two parts:  == Coinbase...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Beginning with [[bitcoind]] 0.6 (not yet released), you will be able to control the creation of coinbase content in blocks you mine.&lt;br /&gt;
This is split into two parts:&lt;br /&gt;
&lt;br /&gt;
== Coinbaser ==&lt;br /&gt;
The coinbaser is an external program which tells bitcoind how to distribute generated funds;&lt;br /&gt;
it is called whenever bitcoind wants to build a new coinbase transaction.&lt;br /&gt;
&lt;br /&gt;
=== Usage (bitcoind 0.6+) ===&lt;br /&gt;
To setup a coinbaser, you need to pass a command to bitcoind using the -coinbaser option.&lt;br /&gt;
This command will be executed by your system's default shell.&lt;br /&gt;
If the string '%d' is present in the command line, it will be replaced with the total amount of funds available for distribution (in satoshis).&lt;br /&gt;
For example:&lt;br /&gt;
 bitcoind -coinbaser='/home/user/coinbaser.pl %d'&lt;br /&gt;
&lt;br /&gt;
You can also have bitcoind connect to a TCP socket. In this case, the socket will be sent &amp;quot;total: &amp;quot; followed by the funds available and two newlines. For example:&lt;br /&gt;
 bitcoind -coinbaser='tcp:localhost:8334'&lt;br /&gt;
&lt;br /&gt;
=== Output format ===&lt;br /&gt;
The coinbaser has a simple line-based format for standard output.&lt;br /&gt;
The first line should contain the number of additional destinations for generated funds.&lt;br /&gt;
For each destination, there should be two lines:&lt;br /&gt;
first, the amount of funds to redirect (in satoshis);&lt;br /&gt;
second, the bitcoin address to direct them to.&lt;br /&gt;
&lt;br /&gt;
If there is any error in this format, a reason will be logged to debug.log and bitcoind will abort customization and revert to its default behaviour of taking the full reward+fees for itself.&lt;br /&gt;
Note that distributing all the available funds is undefined behaviour;&lt;br /&gt;
remaining funds are generated to the original destination, and treated in the usual way.&lt;br /&gt;
This can, however, safely be as low as 1 satoshi left not redirected.&lt;br /&gt;
&lt;br /&gt;
== setworkaux ==&lt;br /&gt;
setworkaux is a new JSON-RPC call to add arbitrary data to your coinbase transaction's &amp;quot;scriptSig&amp;quot;.&lt;br /&gt;
Once added, it will be put in all new work (see [[getwork]]) until explicitly replaced or removed.&lt;br /&gt;
The first parameter is required, and must be an arbitrary identifier for the data chunk.&lt;br /&gt;
The second parameter is optional; if present, it must be a hexadecimal-encoded string of the data to be added (or replace older data under the same id).&lt;br /&gt;
If the second parameter is not provided, it will remove the id from future work.&lt;br /&gt;
There is a limit of 100 octets total in the coinbase;&lt;br /&gt;
setworkaux will fail if you try to add more than it can safely insert.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&lt;br /&gt;
[http://bitcoin.it/ http://bitcoin.it/]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
==See Also on BitcoinWiki==&lt;br /&gt;
* [[Monopoly]]&lt;br /&gt;
* [[Inbot InToken]]&lt;br /&gt;
* [[FRELDO]]&lt;br /&gt;
* [[Nodio]]&lt;br /&gt;
* [[108 Token]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>