Bitcoin Forum

Bitcoin => Project Development => Topic started by: hendo420 on November 16, 2013, 12:18:12 AM



Title: Help get Python to see 0 confirm(unconfirmed) balance
Post by: hendo420 on November 16, 2013, 12:18:12 AM
How can i get my python scrypt to see the balance with 0 confirm transactions added in?


con.getbalance(minconf=0)

doesn't work, it waits for 1 confirm. I was hoping to have my program check the bitcoin balance every 10 seconds and compare to see if there has been an incoming transaction and then to compare that to the requested amount. It must be 0 confirm for my purposes.

does anyone have a cleaner way to go about this? I would like to keep it as simple as possible. lol


Can anyone give me tips on how to just check for incoming transactions every 10 seconds and and then read the amount paid into memory to be used elsewhere?


Title: Re: Help get Python to see 0 confirm(unconfirmed) balance
Post by: hendo420 on November 16, 2013, 03:18:26 AM
Never mind, I figured it out. lol  :D :D :D


Title: Re: Help get Python to see 0 confirm(unconfirmed) balance
Post by: Stake on November 16, 2013, 10:38:01 AM
I know you figured it out, but to let others know: you pass the number of confs as a parameter in your RPC call.