Bitcoin Forum
November 09, 2024, 02:41:08 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automatically catch transactioon made  (Read 606 times)
jza (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 103


View Profile
July 21, 2016, 03:02:22 AM
 #1

I want to know how does a web checkout 'scan' a transaction once the payment wallet is generated, if anyone can share some code regarding this auto-trade of bitcoins.

I would like to know how does ti work on a checkout app on PHP, JS or Python.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 21, 2016, 03:14:22 AM
 #2

Your question is unclear. Are you asking how the merchant knows that he has been paid? If so, it does it the exact same way that every wallet does. It connects to a node (or is a node) and is notified when the node learns of a transaction which spends to the addresses it is watching for.

Ned Kelly
Full Member
***
Offline Offline

Activity: 170
Merit: 101


View Profile
July 21, 2016, 03:16:54 AM
 #3

If I understood you right. You can use getrawmempool in Bitcoin core.
It also has api with json response, so should be easily implemented with python or any other language.
jza (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 103


View Profile
July 21, 2016, 05:58:05 AM
 #4

I get the way to do this with a local bitcoin node, using the wallet as a daemon, I dont really know if there is a blockchain-less (or SPV) development library that can just connec tto a remote blockchain and perform the scanning and such.
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
July 21, 2016, 08:43:37 PM
 #5

https://github.com/sebicas/bitcoin-sniffer
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!