Author

Topic: Electrum - How to check that a payment is done (Read 188 times)

copper member
Activity: 85
Merit: 5
November 22, 2020, 05: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.
legendary
Activity: 2702
Merit: 4002
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
legendary
Activity: 3682
Merit: 1580
"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.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
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
newbie
Activity: 3
Merit: 2
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!
Jump to: