Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why not include the command 'gettxoutsetinfo'? #214

Open
qianshanhai opened this issue Jan 13, 2015 · 3 comments
Open

why not include the command 'gettxoutsetinfo'? #214

qianshanhai opened this issue Jan 13, 2015 · 3 comments

Comments

@qianshanhai
Copy link

Hello, I am develop a safely and quickly trading platform now.

I want to fetch current total namecoins in existence, the command 'gettxoutsetinfo' show the value 'total_amount' that I want to fetch. But namecoin not support this command, why?

@domob1812
Copy link
Contributor

Namecoin (in this repository) is based on an ancient version of Bitcoin and does not keep track of the UTXO set. Thus this command is not easy to implement. There was an experimental branch that added UTXO tracking which eventually turned into an UTXO implementation for Huntercoin, but this is obsolete now.

If you want this command (and a lot more), take a look at https://github.com/domob1812/namecore. Be careful, though, this is still experimental but works fully and will be released officially in the future.

@qianshanhai
Copy link
Author

Thanks. But I just want to fetch the current total namecoins in existence, how to get this value directly in namecoin?

Thanks again.

@domob1812
Copy link
Contributor

You can just calculate it from the block height. 50 NMC per block until 210,000, then 25 NMC per block. Note that the UTXO set of Namecore gives you a slightly less number, since it knows about destroyed coins (the early-days "name fee") and expired names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants