Bitcoin Forum
September 27, 2018, 10:25:48 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How do I Verify that a Transaction is Mine?  (Read 471 times)
WatchTheif
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 10, 2014, 03:58:54 PM
 #1

How does bitcoind know when a transaction is related or of relevance to my address(es)?

How can I check if a transaction is mine quickly? I understand gettransaction will throw an exception when it is not mine, but is there a faster way?


Cheers!
1538087148
Hero Member
*
Offline Offline

Posts: 1538087148

View Profile Personal Message (Offline)

Ignore
1538087148
Reply with quote  #2

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

Posts: 1538087148

View Profile Personal Message (Offline)

Ignore
1538087148
Reply with quote  #2

1538087148
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1373



View Profile
April 10, 2014, 04:07:57 PM
 #2

I guess that depends on exactly what you are trying to accomplish.

Would walletnotify meet your needs?

WatchTheif
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 10, 2014, 04:46:38 PM
 #3

I would like to know how the wallet processes transactions and determines which transactions belong to me and which do not.


Yes, walletnotify fires when a tx related to me has changed and whatnot. But I would like to understand the back end a little more in the bitcoind.
piotr_n
Legendary
*
Offline Offline

Activity: 1932
Merit: 1018


aka tonikt


View Profile WWW
April 10, 2014, 07:56:35 PM
 #4

I would like to know how the wallet processes transactions and determines which transactions belong to me and which do not.

Yes, walletnotify fires when a tx related to me has changed and whatnot. But I would like to understand the back end a little more in the bitcoind.
Well man, it's a complex subject.
Nobody can explain it to you in like one post.
Had you have a specific question, that would be much easier.

How the wallet processes transactions - that's the ultimate question, but there is no ultimate answer. Just a lot of studying.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Evil-Knievel
Legendary
*
Offline Offline

Activity: 1232
Merit: 1149



View Profile
April 10, 2014, 08:03:10 PM
 #5

This message was too old and has been purged
WatchTheif
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 11, 2014, 01:15:14 AM
 #6

@piotr_n yes I understand what I'm asking is a bit out of the norm. I'm just wondering if there is any quick way to identify what transaction is mine and what is not using a txid. It may be the case that I end up using gettransaction and just letting it throw an error when the tx is not mine. I just want to know what is available for this specific functionality.

@Ek yes I've looked up isMine in the CPP code, I understand some of it, thanks for verifying I'm headed in the right direction, it does explain a lot.
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!