Bitcoin Forum
December 12, 2024, 08:00:32 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help get Python to see 0 confirm(unconfirmed) balance  (Read 601 times)
hendo420 (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250



View Profile WWW
November 16, 2013, 12:18:12 AM
Last edit: November 16, 2013, 01:44:08 AM by hendo420
 #1

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?

ebmarket.co
hendo420 (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250



View Profile WWW
November 16, 2013, 03:18:26 AM
 #2

Never mind, I figured it out. lol  Cheesy Cheesy Cheesy

ebmarket.co
Stake
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
November 16, 2013, 10:38:01 AM
 #3

I know you figured it out, but to let others know: you pass the number of confs as a parameter in your RPC call.
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!