Separate Decred ticket fees from the ticket purchase price

Stake transactions compete for inclusion and can pay different fee rates. A ticket buyer needs to distinguish the cost of the ticket itself from the fee paid for its serialized purchase transaction.

Compare three ticket-fee samples

The call requests six recent blocks and two difficulty windows along with the current mempool sample. The rate statistics use DCR per kB. Keep each group's observation count when comparing medians.

dcrctl ticketfeeinfo 6 2 | jq '{feeinfomempool, feeinfoblocks, feeinfowindows}'

Convert a rate to an indicative fee

At an illustrative 0.01 DCR/kB, a 500-byte purchase transaction corresponds to 0.005 DCR in fees. It still needs the ticket purchase amount. A thin mempool sample can be unrepresentative, and historical fee statistics do not guarantee inclusion in any particular block.

github.com ticketfeeinfo