Author

Topic: Question - Is there a way to programmatically check if wallet exists in chain (Read 560 times)

sr. member
Activity: 350
Merit: 251
If by wallet you mean address, then yes, partially. Technically all addresses that can every exist already exist; there is no need to register that you own an address or anything of that sort. To the Bitcoin network and blockchain, your address is just a hash in the output script of a transaction and that that hash must match the hash of the public key or redeemscript that you provide when spending from the output. So technically, addresses don't matter and are pretty much irrelevant to the blockchain.

You can check to see if an address was previously used by scanning the entire blockchain for transactions which have the same output that the address specifies. However you cannot know whether someone has already created an address but never used it. You also don't know when an address was created because it could be created long before it is actually first used.

Thanks a lot for the reply. I will figure something out about the scanning of the blockchain.
staff
Activity: 3374
Merit: 6530
Just writing some code
If by wallet you mean address, then yes, partially. Technically all addresses that can every exist already exist; there is no need to register that you own an address or anything of that sort. To the Bitcoin network and blockchain, your address is just a hash in the output script of a transaction and that that hash must match the hash of the public key or redeemscript that you provide when spending from the output. So technically, addresses don't matter and are pretty much irrelevant to the blockchain.

You can check to see if an address was previously used by scanning the entire blockchain for transactions which have the same output that the address specifies. However you cannot know whether someone has already created an address but never used it. You also don't know when an address was created because it could be created long before it is actually first used.
sr. member
Activity: 350
Merit: 251
Hi guys,

Sorry for the dumb question but I am writing a software and I am wondering if there is a way in C# or Java to check if a wallet exists in the Network already, or the date of creation of a wallet?

Thanks in advance.
Jump to: