<p>Although the standard way of dealing with colored coins left for fees is to uncolor them, it is possible to offer colored fees.</p>

<p>This has been recently discussed in the bitcoinx mailing list. I quote Alex Mizrahi (Killerstorm) for an explanation on how to do it:</p>

<p>"Pay a small amount of colored coins to output  OP_TRUE script. Anybody can spend it, but usually that would be miner who mines next block and can recognize OP_TRUE script. Thus miner can construct transaction which pays colored coins to himself and include both into block he mines."</p>

<p>This is the original thread: <a href="https://groups.google.com/d/topic/bitcoinx/JshJboR_vWc/discussion" rel="nofollow">https://groups.google.com/d/topic/bitcoinx/JshJboR_vWc/discussion</a></p>

CC BY-SA 3.0
2013-05-04T16:10:13.113Z
Ingenious!  I forgot about OP_TRUE.  Currently this would require a custom-built client to build the transaction manually, correct?
eMansipater
CC BY-SA 3.0
2015-01-14T13:03:44.620Z
It would require a specialized color kernel implementation (or a modification of the existing ones)
jtimon
CC BY-SA 3.0
2013-05-04T13:42:44.443Z
2013-05-04T13:42:44.443Z
jtimon
<p>Although it's not covered by the specification, it seems logical to match all transaction fees (in the order in which the transactions appear in the block) against the block reward the same way other transactions are matched. The leaves only whether the block reward comes before or after the transaction fees. I think it makes the most sense to put the block reward after the transaction fees, since the block reward will always consist of uncolored coins (unless someone "pre-colors" them, which seems strange), and the convention is that uncolored coins go last.</p>

CC BY-SA 3.0
2013-05-04T09:00:22.487Z
I agree, but is this actually being done in any implementation of the coloured coin concept?
eMansipater
CC BY-SA 3.0
2013-05-04T08:33:59.177Z
2013-05-04T09:05:54.987Z
2013-05-04T09:05:54.987Z
David Schwartz
<p><strong>Does the <a href="http://www.bitcoinx.org/" rel="nofollow">coloured coins</a> spec (or an informal convention amongst its implementers) track coloured coins left to the miner of a transaction's block in the standard manner?</strong></p>

<p>Obviously the miner would have to be running a coloured-coin-friendly mining implementation, but I was wondering if anyone knows whether there is intended to be a way for a coloured-coin-recognising miner to do this.</p>

<p>The coloured coin spec document at</p>

<p><a href="https://github.com/killerstorm/colored-coin-tools/blob/master/colors.md" rel="nofollow">https://github.com/killerstorm/colored-coin-tools/blob/master/colors.md</a></p>

<p>Makes no mention of mining except to say that</p>

<blockquote>
  <p>Fee[s] should be paid using uncolored coins. If it is absolutely necessary to pay [a] fee with colored coins, that color should go...last.</p>
</blockquote>

<p><strong>Is it intended that in this scenario the miner can "collect" the coins while retaining their colour?</strong></p>

<colored-coins>
Can coloured coins be given to miners?
eMansipater
# Can coloured coins be given to miners?

(Asked by: username_0 on 2013-04-25)

**Does the [coloured coins](http://www.bitcoinx.org/) spec (or an informal convention amongst its implementers) track coloured coins left to the miner of a transaction's block in the standard manner?**

Obviously the miner would have to be running a coloured-coin-friendly mining implementation, but I was wondering if anyone knows whether there is intended to be a way for a coloured-coin-recognising miner to do this.

The coloured coin spec document at

<https://github.com/killerstorm/colored-coin-tools/blob/master/colors.md>

Makes no mention of mining except to say that

> Fee[s] should be paid using uncolored coins. If it is absolutely necessary to pay [a] fee with colored coins, that color should go...last.

**Is it intended that in this scenario the miner can "collect" the coins while retaining their colour?**

**Tags:** colored-coins


---

## 2 answers

### Answer by username_1 on 2013-05-04. Score: 1 | Accepted answer

Although the standard way of dealing with colored coins left for fees is to uncolor them, it is possible to offer colored fees.

This has been recently discussed in the bitcoinx mailing list. I quote Alex Mizrahi (Killerstorm) for an explanation on how to do it:

"Pay a small amount of colored coins to output OP\_TRUE script. Anybody can spend it, but usually that would be miner who mines next block and can recognize OP\_TRUE script. Thus miner can construct transaction which pays colored coins to himself and include both into block he mines."

This is the original thread: <https://groups.google.com/d/topic/bitcoinx/JshJboR_vWc/discussion>

> **Comments:**
> **username_0**: Ingenious!  I forgot about OP_TRUE.  Currently this would require a custom-built client to build the transaction manually, correct?  
> **username_1**: It would require a specialized color kernel implementation (or a modification of the existing ones)  

---

### Answer by username_2 on 2013-05-04. Score: 1

Although it's not covered by the specification, it seems logical to match all transaction fees (in the order in which the transactions appear in the block) against the block reward the same way other transactions are matched. The leaves only whether the block reward comes before or after the transaction fees. I think it makes the most sense to put the block reward after the transaction fees, since the block reward will always consist of uncolored coins (unless someone "pre-colors" them, which seems strange), and the convention is that uncolored coins go last.

> **Comments:**
> **username_0**: I agree, but is this actually being done in any implementation of the coloured coin concept?  

---

