Bitcoin Forum
May 06, 2024, 09:02:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum - How to check that a payment is done  (Read 166 times)
mapapuche (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
November 20, 2020, 10:08:06 PM
Merited by The Cryptovator (1)
 #1

i'm using Electrum

I have a website where i accept Bitcoin. I generate a new address, give it to customer then i wait the customer pay.

I don't really understand, how can i do to see if the payment is done or not using the JsonRPC ?

I will have thousand of payment / day. So i can't do balance diff on that kind of stuff :s

I tried to use "notify" : 'notify', {'address': address, 'URL':'http://localhost:8000/payement/success/'} That work, i receive the request on my URL but i don't get any parameters to help me, like amount received or tx id of transaction.

thank for your help!
1714986148
Hero Member
*
Offline Offline

Posts: 1714986148

View Profile Personal Message (Offline)

Ignore
1714986148
Reply with quote  #2

1714986148
Report to moderator
1714986148
Hero Member
*
Offline Offline

Posts: 1714986148

View Profile Personal Message (Offline)

Ignore
1714986148
Reply with quote  #2

1714986148
Report to moderator
1714986148
Hero Member
*
Offline Offline

Posts: 1714986148

View Profile Personal Message (Offline)

Ignore
1714986148
Reply with quote  #2

1714986148
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
November 21, 2020, 12:17:56 AM
 #2

I don't much knowledge about Electrum merchants I mostly use BTCpayserver and blockonomics.

Anyway, I found this link below from Electrum docs and I think this is what you looking for but this is only for TXID.
Look:
- https://electrum.readthedocs.io/en/latest/protocol.html#request

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
November 21, 2020, 12:50:18 AM
 #3

"electrum help" on the command line has the full list of options. one is getaddressbalance. the notify option should be providing more data though. there are also options for getting transaction specific data.

edit:


I will have thousand of payment / day. So i can't do balance diff on that kind of stuff :s


electrum is not suitable for this. it can't handle large wallets. you should look at btcpayserver or something that use bitcoin core.
hugeblack
Legendary
*
Offline Offline

Activity: 2506
Merit: 3647


Buy/Sell crypto at BestChange


View Profile WWW
November 21, 2020, 10:11:45 AM
 #4

Please remember that electrum's wallet was not designed to work for stores that contain thousands of transactions per day. If you want to manage in a more professional, use it with BTCpayserver, and then connect it with hardware wallet for more security.

also, electrum gets slower when you have lots of addresses every day

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
AltcoinBuilder
Copper Member
Jr. Member
*
Offline Offline

Activity: 85
Merit: 5


View Profile WWW
November 22, 2020, 10:35:08 AM
 #5

you should setup a bitcoin node and use it for this case. it is possible to use electrum for recent payment check using `getaddressbalance` command too.
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!