Author

Topic: Help get Python to see 0 confirm(unconfirmed) balance (Read 599 times)

newbie
Activity: 56
Merit: 0
I know you figured it out, but to let others know: you pass the number of confs as a parameter in your RPC call.
sr. member
Activity: 420
Merit: 250
Never mind, I figured it out. lol  Cheesy Cheesy Cheesy
sr. member
Activity: 420
Merit: 250
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?
Jump to: