Author

Topic: Extracting currency names from wallets or using RPC (Read 776 times)

newbie
Activity: 17
Merit: 0
As someone said here use something to parse daemon name - remove coind and here u go Cheesy
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
Seemingly everyone here has forgotten about the version byte used in addresses!

Create a new address over RPC, decode the base58 into hex, and the first byte will indicate what network you are on. https://en.bitcoin.it/wiki/List_of_address_prefixes If the item isn't on this list, just follow this procedure with your whatevercoin, and you'll get the address byte.

+1

If your hacking this on PHP, PHPCoinaddress is a good direction to go towards.
https://bitcointalksearch.org/topic/ann-phpcoinaddress-create-publicprivate-key-pairs-for-bitcoin-etc-200042

But if you are looking at extracting this info from a daemon, can't see how that can be done without customizing the daemon itself.
member
Activity: 84
Merit: 10
There be komodo dragons
Seemingly everyone here has forgotten about the version byte used in addresses!

Create a new address over RPC, decode the base58 into hex, and the first byte will indicate what network you are on. https://en.bitcoin.it/wiki/List_of_address_prefixes If the item isn't on this list, just follow this procedure with your whatevercoin, and you'll get the address byte.
Clever.

I think I missed an important information: I'd like the process to be done automatically in a script.

The ideal think would be that if I add a new coin wallet in my wallet directory, the script would be able to extract the wallet amount and its unit.

For example, if I create a Darkcoin wallet there and mine some coins, I would get from the script something like: "234.56 QRK".
sr. member
Activity: 412
Merit: 287
Seemingly everyone here has forgotten about the version byte used in addresses!

Create a new address over RPC, decode the base58 into hex, and the first byte will indicate what network you are on. https://en.bitcoin.it/wiki/List_of_address_prefixes If the item isn't on this list, just follow this procedure with your whatevercoin, and you'll get the address byte.
legendary
Activity: 4214
Merit: 1313
Extract the daemon name?
Won't give the currency unit (BTC, LTC, DOGE, etc).

Why?

bitcoind
litecoind
dogecoind
etc

all shows the name based on the name of the daemon you are querying (or bitcoin-qt etc).  Or if you know the wallet data directory, it will include something unique that most likely includes the name.

member
Activity: 84
Merit: 10
There be komodo dragons
Extract the daemon name?
Won't give the currency unit (BTC, LTC, DOGE, etc).
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
Two quick ways that I could think of are:
- Maintain a manual input field to allow the user to enter the coin name.
- Maintain a list of addresses of each coin and validate each one till you get a match.
The idea here is that you should not have to enter any information. The goal of the script is to give you a list of your wallet amounts completely automatically.

Extract the daemon name?
member
Activity: 84
Merit: 10
There be komodo dragons
Two quick ways that I could think of are:
- Maintain a manual input field to allow the user to enter the coin name.
- Maintain a list of addresses of each coin and validate each one till you get a match.
The idea here is that you should not have to enter any information. The goal of the script is to give you a list of your wallet amounts completely automatically.
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
Hi all,

I've written a simple script to extract the amount of coins in all my cryptocurrency wallets.

My problem now is that amounts alone won't help me much. What I need would be to match them with their currency name.

Does anyone know, given a wallet data directory and a cryptocoin binary (*-qt.exe), how to extract the associated currency unit (BTC, LTC, DOGE, DRK, etc.)?

I didn't see this information anywhere in the RPC endpoints, and I don't think the wallet database files are self-aware enough to tell me.

Thanks for any help,

Two quick ways that I could think of are:
- Maintain a manual input field to allow the user to enter the coin name.
- Maintain a list of addresses of each coin and validate each one till you get a match.
member
Activity: 84
Merit: 10
There be komodo dragons
Hi all,

I've written a simple script to extract the amount of coins in all my cryptocurrency wallets.

My problem now is that amounts alone won't help me much. What I need would be to match them with their currency name.

Does anyone know, given a wallet data directory and a cryptocoin binary (*-qt.exe), how to extract the associated currency unit (BTC, LTC, DOGE, DRK, etc.)?

I didn't see this information anywhere in the RPC endpoints, and I don't think the wallet database files are self-aware enough to tell me.

Thanks for any help,
Jump to: