Can coinbase transactions be filtered?

+2 votes
I'm trying to set up some mining addresses but not rewardable.

I've read filters can not be applied to the output of coinbase transactions.

Is there any way to reject such transactions or redirect native currency output to another ( i.e. burn ) address?

Regards!
asked Aug 30, 2019 by germat

1 Answer

0 votes

You cannot use filters to apply rules for coinbase transactions. However you can apply rules on how the rewards are spent by checking the inputs of subsequent transactions that might spend them. Use the getfiltertxinput(...) callback to check the input for a transaction and look for the value of the coinbase field in that callback's response to know whether or not it's a coinbase output being spent.

answered Sep 1, 2019 by MultiChain
...