Bitcoin Forum
September 21, 2017, 09:13:19 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Question - Is there a way to programmatically check if wallet exists in chain  (Read 320 times)
krack-r
Sr. Member
****
Offline Offline

Activity: 252



View Profile
April 15, 2017, 04:09:04 PM
 #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
1506028399
Hero Member
*
Offline Offline

Posts: 1506028399

View Profile Personal Message (Offline)

Ignore
1506028399
Reply with quote  #2

1506028399
Report to moderator
1506028399
Hero Member
*
Offline Offline

Posts: 1506028399

View Profile Personal Message (Offline)

Ignore
1506028399
Reply with quote  #2

1506028399
Report to moderator
1506028399
Hero Member
*
Offline Offline

Posts: 1506028399

View Profile Personal Message (Offline)

Ignore
1506028399
Reply with quote  #2

1506028399
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1506028399
Hero Member
*
Offline Offline

Posts: 1506028399

View Profile Personal Message (Offline)

Ignore
1506028399
Reply with quote  #2

1506028399
Report to moderator
1506028399
Hero Member
*
Offline Offline

Posts: 1506028399

View Profile Personal Message (Offline)

Ignore
1506028399
Reply with quote  #2

1506028399
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1162


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
April 15, 2017, 04:21:27 PM
 #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.

          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
.
|
.
|
          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
unthy
krack-r
Sr. Member
****
Offline Offline

Activity: 252



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!