KriszDev
|
|
August 20, 2014, 08:32:55 PM |
|
How the CLAM client check my balance on DOGE chain?
|
|
|
|
MyPotPlantDied
Member
Offline
Activity: 71
Merit: 10
|
|
August 20, 2014, 08:41:11 PM |
|
I have to say that this is one of the coolest ideas for an altcoin I have seen. No fussing around with miners, no scam IPOs, just send out the coins and let people collect them! Brilliant!
|
|
|
|
xploited
Sr. Member
Offline
Activity: 304
Merit: 252
CLAM Dev
|
|
August 20, 2014, 08:49:12 PM Last edit: August 20, 2014, 08:59:38 PM by xploited |
|
How the CLAM client check my balance on DOGE chain?
It doesn't check your 'current' balance on the DOGE chain. (somewhat simplified and lacking technical details) Your DOGE's are held by addresses that you own. Back in may a snapshot of the DOGE/BTC and LTC chain was taken. The snapshot included all addresses on these chains that had an above 0 balance (above dust more specifically). We then sent 4.6~ CLAMS to each address (converted into a CLAM address) on the CLAM chain. When you import your DOGE wallet, what your doing is converting your DOGE address (stats with 'D') into a clam address ('x'). If when the snapshot was taken your original DOGE address had a positive balance you'll have a coresponding CLAM address with 4.6~ clams. I hope that helps
|
|
|
|
xploited
Sr. Member
Offline
Activity: 304
Merit: 252
CLAM Dev
|
|
August 20, 2014, 09:19:04 PM |
|
I have to say that this is one of the coolest ideas for an altcoin I have seen. No fussing around with miners, no scam IPOs, just send out the coins and let people collect them! Brilliant!
Thanks for the kind words! Our team and the community volunteers (like dooglus and others) have and continue to put a ton of work into CLAMs to improve things. I can't speak for everyone but for me people enjoying our idea is all the validation I need for the time spent to have paid off. So thank you
|
|
|
|
Thirdspace
|
|
August 20, 2014, 10:02:55 PM |
|
It doesn't check your 'current' balance on the DOGE chain.
(somewhat simplified and lacking technical details) Your DOGE's are held by addresses that you own. Back in may a snapshot of the DOGE/BTC and LTC chain was taken. The snapshot included all addresses on these chains that had an above 0 balance (above dust more specifically). We then sent 4.6~ CLAMS to each address (converted into a CLAM address) on the CLAM chain.
When you import your DOGE wallet, what your doing is converting your DOGE address (stats with 'D') into a clam address ('x'). If when the snapshot was taken your original DOGE address had a positive balance you'll have a coresponding CLAM address with 4.6~ clams.
I hope that helps
can I do importprivkey even before the client fully sync-ed? by that I mean would I get the correct clam address? or maybe can someone show me an example of btc address and its corresponding clam address? I want to check if doing search on khashier actually correctly mapped the btc addr to its clam addr
|
|
|
|
xploited
Sr. Member
Offline
Activity: 304
Merit: 252
CLAM Dev
|
|
August 20, 2014, 10:11:28 PM |
|
It doesn't check your 'current' balance on the DOGE chain.
(somewhat simplified and lacking technical details) Your DOGE's are held by addresses that you own. Back in may a snapshot of the DOGE/BTC and LTC chain was taken. The snapshot included all addresses on these chains that had an above 0 balance (above dust more specifically). We then sent 4.6~ CLAMS to each address (converted into a CLAM address) on the CLAM chain.
When you import your DOGE wallet, what your doing is converting your DOGE address (stats with 'D') into a clam address ('x'). If when the snapshot was taken your original DOGE address had a positive balance you'll have a coresponding CLAM address with 4.6~ clams.
I hope that helps
can I do importprivkey even before the client fully sync-ed? by that I mean would I get the correct clam address? or maybe can someone show me an example of btc address and its corresponding clam address? I want to check if doing search on khashier actually correctly mapped the btc addr to its clam addr It needs to be synced to 10k at least, or you won't have all the sends. Dooglus posted a method in python a while back for converting an address (sorry, don't have the pg number) I use the site http://gobittest.appspot.com/Address for quick one offs. Put the btc address in step 9, click send. In step 4, remove the leading 00 and replace it with 89, click send on step 4. You should now have the corresponding Clam address Here is an example or a random unfunded address. 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM into step 9 Step 4 is 00010966776006953D5567439E5E39F86A0D273BEE and becomes 89010966776006953D5567439E5E39F86A0D273BEE hit send on step 4. Step 9 gives you the clam address x8Q7qDAchSMe5nmGBf7akyx4zHhMMLp9gD This works with BTC/DOGE and LTC addresses
|
|
|
|
Thirdspace
|
|
August 20, 2014, 10:54:10 PM |
|
It needs to be synced to 10k at least, or you won't have all the sends. Dooglus posted a method in python a while back for converting an address (sorry, don't have the pg number) I use the site http://gobittest.appspot.com/Address for quick one offs. Put the btc address in step 9, click send. In step 4, remove the leading 00 and replace it with 89, click send on step 4. You should now have the corresponding Clam address Here is an example or a random unfunded address. 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM into step 9 Step 4 is 00010966776006953D5567439E5E39F86A0D273BEE and becomes 89010966776006953D5567439E5E39F86A0D273BEE hit send on step 4. Step 9 gives you the clam address x8Q7qDAchSMe5nmGBf7akyx4zHhMMLp9gD This works with BTC/DOGE and LTC addresses ok cool... but you're btc addr example wasn't entitled to any CLAMs distribution, so no hit on khashier so I tried with my own address and followed your instruction on gobittest, the result exactly the same as if I did it thru khashier search... THANKS now I know two ways to find CLAM address (and the third is the script, which I have no way to test it)
|
|
|
|
xploited
Sr. Member
Offline
Activity: 304
Merit: 252
CLAM Dev
|
|
August 20, 2014, 11:28:26 PM |
|
It needs to be synced to 10k at least, or you won't have all the sends. Dooglus posted a method in python a while back for converting an address (sorry, don't have the pg number) I use the site http://gobittest.appspot.com/Address for quick one offs. Put the btc address in step 9, click send. In step 4, remove the leading 00 and replace it with 89, click send on step 4. You should now have the corresponding Clam address Here is an example or a random unfunded address. 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM into step 9 Step 4 is 00010966776006953D5567439E5E39F86A0D273BEE and becomes 89010966776006953D5567439E5E39F86A0D273BEE hit send on step 4. Step 9 gives you the clam address x8Q7qDAchSMe5nmGBf7akyx4zHhMMLp9gD This works with BTC/DOGE and LTC addresses ok cool... but you're btc addr example wasn't entitled to any CLAMs distribution, so no hit on khashier so I tried with my own address and followed your instruction on gobittest, the result exactly the same as if I did it thru khashier search... THANKS now I know two ways to find CLAM address (and the third is the script, which I have no way to test it) Thats correct, my btc example wouldn't have shown up on khashier, it was just a randomly generated address to show how to do it. I'm glad I could be of help Its also possible to go the other way. Put your clam address in step 9 and find the btc/doge/ltc address in step 4 you would replace 89 with 1e (for doge) 30 (for litecoin) or 00 (for bitcoin)
|
|
|
|
SuperClam (OP)
|
|
August 21, 2014, 01:27:57 AM |
|
It needs to be synced to 10k at least, or you won't have all the sends. Dooglus posted a method in python a while back for converting an address (sorry, don't have the pg number) I use the site http://gobittest.appspot.com/Address for quick one offs. Put the btc address in step 9, click send. In step 4, remove the leading 00 and replace it with 89, click send on step 4. You should now have the corresponding Clam address Here is an example or a random unfunded address. 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM into step 9 Step 4 is 00010966776006953D5567439E5E39F86A0D273BEE and becomes 89010966776006953D5567439E5E39F86A0D273BEE hit send on step 4. Step 9 gives you the clam address x8Q7qDAchSMe5nmGBf7akyx4zHhMMLp9gD This works with BTC/DOGE and LTC addresses ok cool... but you're btc addr example wasn't entitled to any CLAMs distribution, so no hit on khashier so I tried with my own address and followed your instruction on gobittest, the result exactly the same as if I did it thru khashier search... THANKS now I know two ways to find CLAM address (and the third is the script, which I have no way to test it) Thats correct, my btc example wouldn't have shown up on khashier, it was just a randomly generated address to show how to do it. I'm glad I could be of help Its also possible to go the other way. Put your clam address in step 9 and find the btc/doge/ltc address in step 4 you would replace 89 with 1e (for doge) 30 (for litecoin) or 00 (for bitcoin) This is all correct. However, please be careful. You may have CLAMS in your wallet that are associated with an address you aren't aware of; i.e. you didn't receive coins to it. These are called "change" addresses. Almsot every single time you send out coins one of these "change" addresses is created and holds coins. Just because you search an address you "think" holds your coins, does NOT mean that it still does hold your coins.
In short, the only way (without an intimate understand of the protocol) to be sure you have claimed all of your CLAMS is to import the entire wallet. Otherwise, there is a very good chance you have missed "change" addresses.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
August 21, 2014, 05:04:08 AM |
|
For each of those lines go to the clam client ->Help->debug->console and use the command
importprivkey 5K13f6J8KySKqHhvME9rweRdV21hSNkcU5ZMd4rTWXwWusPFDrx
Add the word 'false' (without quotes) to the end of each of these commands except the last one and it will go much faster. 'false' prevents it rescanning the blockchain for each import. You only need to rescan after adding all your private keys. can I do importprivkey even before the client fully sync-ed? by that I mean would I get the correct clam address?
Yes. But you don't need to import at all if all you want to do is check the balance. I provided a script before which converts between CLAM/BTC/LTC/DOGE addresses, without the need for a blockchain or any private keys. It needs to be synced to 10k at least, or you won't have all the sends.
You can import your private key before syncing to block 10k. Then, as you continue to sync, you will see your coins appear. If you're only importing to check the balance then yeah, you'll need to sync to 10k to be sure the initial sends are all visible.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
romerun
Legendary
Offline
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
|
|
August 21, 2014, 08:07:08 AM |
|
after importing wallets, should I create a new wallet and send all the clams to the new one (to avoid leaking private keys of the original wallets) ?
Will it reduce my minting ability if I do that ?
What can I do with all the clams now, any dice sites, merchants, pizza, clambase, xclamster ?
|
|
|
|
paulc010
Member
Offline
Activity: 92
Merit: 10
|
|
August 21, 2014, 08:56:58 AM |
|
after importing wallets, should I create a new wallet and send all the clams to the new one (to avoid leaking private keys of the original wallets) ?
Will it reduce my minting ability if I do that ?
What can I do with all the clams now, any dice sites, merchants, pizza, clambase, xclamster ?
I would let them stake once first as they are nicely aged and should stake reasonably quickly. After that do with them as you like
|
|
|
|
hloren70
Member
Offline
Activity: 72
Merit: 10
|
|
August 21, 2014, 09:04:11 AM |
|
Is there a way to check a Bitcoin address to see if it has been sent CLAMS without scanning the wallet? I checked the first post but didn't see anything.
|
|
|
|
|
KriszDev
|
|
August 21, 2014, 10:51:34 AM |
|
I imported my DOGE wallet and there is no CLAMs.
|
|
|
|
xploited
Sr. Member
Offline
Activity: 304
Merit: 252
CLAM Dev
|
|
August 21, 2014, 11:22:55 PM |
|
I imported my DOGE wallet and there is no CLAMs.
Sorry to hear that. The addresses in your wallet must not have been funded back on may 12th when the snapshot was taken. Any addresses created after that time would not be seen on the clam chain
|
|
|
|
SuperClam (OP)
|
|
August 21, 2014, 11:35:40 PM |
|
I hate to repeat myself, but I think that this is very important. The last thing we want is a user who HAS Clams waiting for them to think that they do NOT HAVE them.
If you don't understand "change" addresses, please be aware that using the various methods listed to 'check' may give you a false negative on claiming CLAMS. It is possible, and even likely, that there may be CLAMS waiting for you in a "change" address.
|
|
|
|
paulc010
Member
Offline
Activity: 92
Merit: 10
|
|
August 22, 2014, 08:42:20 AM |
|
I hate to repeat myself, but I think that this is very important.
The last thing we want is a user who HAS Clams waiting for them to think that they do NOT HAVE them.
If you don't understand "change" addresses, please be aware that using the various methods listed to 'check' may give you a false negative on claiming CLAMS.
It is possible, and even likely, that there may be CLAMS waiting for you in a "change" address.
Indeed. There's a difference to checking a single "address" and checking a "wallet". Maybe there should be information in the first post regarding each and the distinction between them?
|
|
|
|
istvandv
|
|
August 22, 2014, 09:38:34 AM |
|
i suppose because of fear in general of importing other wallets (no matter how much we try to show that it is completely safe in CLAMS) they would like to check first before diving in
would running "listreceivedbyaddress 0 true" in the debug console printout all the addresses in the wallet including change addresses? or is there a better command
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
August 22, 2014, 05:21:51 PM Last edit: August 22, 2014, 05:39:52 PM by dooglus |
|
i suppose because of fear in general of importing other wallets (no matter how much we try to show that it is completely safe in CLAMS) they would like to check first before diving in
would running "listreceivedbyaddress 0 true" in the debug console printout all the addresses in the wallet including change addresses? or is there a better command
That's a great idea. The '0' is the number of confirmations needed to list an address - so if we can find out how many blocks there have been since the CLAM snapshot of the Bitcoin blockchain was taken, that's the number we need to put there. And the 'true' means to list addresses that never received any coins, so we don't want that. Checking blockchain.info I see that block 298520 has a timestamp of 2014-05-01 01:02:33, which I'm guessing is around the time the snapshot was taken - but the CLAM developers should be able to give us the exact block number for all three snapshots. Then at a Linux shell prompt I can run: bitcoind listreceivedbyaddress $(($(bitcoind getblockcount) - 298520)) | grep address to get a list of all the addresses which were funded on or before that block number and so should have CLAMs (if the funding wasn't just dust) [ Edit: some of the addresses it lists may have had a balance before the snapshot, but been empty at the time of the snapshot and so won't have any CLAMs to dig; it would be nice if I could improve my script to only show addresses which had a "balance" (I hope lukejr doesn't see this) at a certain block number, but I don't see a way of doing that; I was excited when I converted the list of addresses in my wallet into CLAM addresses, then used 'validateaddress' in the clam wallet only to find that none of them had been imported - but it turns out all the listed addresses were empty at the dump date, because my whole wallet was empty at the time - apparently all my coins were invested on a dodgy dice site ] Or, better, I can run: bitcoind listreceivedbyaddress $(($(bitcoind getblockcount) - 298520)) | grep -E '^ *"(address|amount)"' | awk '{print $3}' | while read address; do read amount; echo $amount $address; done | sort -n to get the same list, but with the amount received, sorted in order of amount received: 0.00000001, "1Mi3enEMy3GSAYSoifs9L8jZ2c4A2EZ7co", 0.00000008, "1Pqn9rAJup6cWzd6JrhJVPCmBTqVLN1y3W", 0.00005669, "1JXDq76gJirgk5v2djmdo5DjtncrGXw4Tm", ... 3538.96307960, "1DodGYjF5LFoKg186jANZV9U8znXjagSzS", 4673.25920093, "1PwncQYDQDUAhrr2Ag5cTj3QNurMc3kWJu", 14700.00000000, "1PwgycpEn4G2Tb8wVNgMrhACukXLfvYsRf", 562890.27306771, "14Fu4z4EBmX8Lq7H3whG9bUJFLAdBDEevY",
If you don't have a Linux shell prompt, you can use the console in bitcoin-qt: Run 'getblockcount' to get the current block number Subtract 298520 from it, to get the depth of the CLAM snapshot (replace 298520 with the real number if it becomes known) Run 'listreceivedbyaddress NNNN' where NNNN is the result of the above subtraction
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
|