Bitcoin Forum
April 24, 2024, 06:07:42 PM *
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 162 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!
1713982062
Hero Member
*
Offline Offline

Posts: 1713982062

View Profile Personal Message (Offline)

Ignore
1713982062
Reply with quote  #2

1713982062
Report to moderator
1713982062
Hero Member
*
Offline Offline

Posts: 1713982062

View Profile Personal Message (Offline)

Ignore
1713982062
Reply with quote  #2

1713982062
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713982062
Hero Member
*
Offline Offline

Posts: 1713982062

View Profile Personal Message (Offline)

Ignore
1713982062
Reply with quote  #2

1713982062
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


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: 3598
Merit: 1560



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: 2492
Merit: 3596


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!