Bitcoin Forum
May 10, 2024, 06:21:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question - Is there a way to programmatically check if wallet exists in chain  (Read 560 times)
krack-r (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 251



View Profile
April 15, 2017, 04:09:04 PM
Merited by ABCbits (1)
 #1

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.

My Vanity address - 1KrackryDQCJTm8R21uUzrPXJTUpgMudin
paxful profile - https://paxful.com/user/krack-r
1715322061
Hero Member
*
Offline Offline

Posts: 1715322061

View Profile Personal Message (Offline)

Ignore
1715322061
Reply with quote  #2

1715322061
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715322061
Hero Member
*
Offline Offline

Posts: 1715322061

View Profile Personal Message (Offline)

Ignore
1715322061
Reply with quote  #2

1715322061
Report to moderator
1715322061
Hero Member
*
Offline Offline

Posts: 1715322061

View Profile Personal Message (Offline)

Ignore
1715322061
Reply with quote  #2

1715322061
Report to moderator
1715322061
Hero Member
*
Offline Offline

Posts: 1715322061

View Profile Personal Message (Offline)

Ignore
1715322061
Reply with quote  #2

1715322061
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
April 15, 2017, 04:21:27 PM
Merited by ABCbits (3)
 #2

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.

krack-r (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 251



View Profile
April 15, 2017, 05:52:35 PM
 #3

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.

My Vanity address - 1KrackryDQCJTm8R21uUzrPXJTUpgMudin
paxful profile - https://paxful.com/user/krack-r
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!