2
I'm writing a module that connects to multiple wallets at once and I would like to have a way I can simply query the coin daemon for its coins abbreviation (not the "microcoins" as asked in a comment below, just the 3 character currency identifier).
Since my module also reads the coins config file, my only solution thus far is to add a parameter in the coins config file:
abbr=BTC
But I was wondering if there was a cleaner way to do this. A simple rpc command that I can pull the abbr from?
Do you mean BTC as opposed to mBTC or uBTC? I don't think I understand what you mean. – Jannes – 2015-10-28T00:36:57.323
I don't think there's any way to do this that's better than what you've come up with. – Nick ODell – 2015-10-30T03:19:44.457
It just surprises me that the Bitcoin software does not output "BTC" anywhere. I know that it is defined in the code, but I don't think there is an rpc call that ouputs "BTC". Maybe a future feature... I could always modify the source code of each coin and compile it... but that is going the wrong direction on my part. – s4w3d0ff – 2015-10-31T17:48:29.033