Bitcoin Forum
May 11, 2024, 10:38:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automatically catch transactioon made  (Read 591 times)
jza (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 102


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.
1715423913
Hero Member
*
Offline Offline

Posts: 1715423913

View Profile Personal Message (Offline)

Ignore
1715423913
Reply with quote  #2

1715423913
Report to moderator
1715423913
Hero Member
*
Offline Offline

Posts: 1715423913

View Profile Personal Message (Offline)

Ignore
1715423913
Reply with quote  #2

1715423913
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715423913
Hero Member
*
Offline Offline

Posts: 1715423913

View Profile Personal Message (Offline)

Ignore
1715423913
Reply with quote  #2

1715423913
Report to moderator
1715423913
Hero Member
*
Offline Offline

Posts: 1715423913

View Profile Personal Message (Offline)

Ignore
1715423913
Reply with quote  #2

1715423913
Report to moderator
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


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: 102


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!