Title: Need Help with programmatically interfacing with ElectrumX Post by: cog08 on October 27, 2023, 11:31:07 AM Hi, I am a Newbie to Electrum & ElectrumX and would like to know the best path to take in order to achieve being able to make Bitcoin Queries and Transactions using ElectrumX and Python (starting off with a website running on Flask). Could someone help me because it is hard to find examples (tutorials) on the web and I don't know if they are safe (security wise)?
Note:
Thanks Title: Re: Need Help with programmatically interfacing with ElectrumX Post by: DaveF on October 27, 2023, 12:00:00 PM I don't know anything about Flask.
However, electrumx_rpc is straight python https://github.com/spesmilo/electrumx/blob/master/electrumx_rpc So following that should get you at least some of the way there. -Dave Title: Re: Need Help with programmatically interfacing with ElectrumX Post by: nc50lc on October 27, 2023, 02:32:40 PM
You can review its source code to see how it communicates with the specified or public Electrum servers. Most notably, "network.py". Link to source: https://github.com/spesmilo/electrum/tree/master/electrum (https://github.com/spesmilo/electrum/tree/master/electrum) Title: Re: Need Help with programmatically interfacing with ElectrumX Post by: cog08 on December 03, 2023, 03:02:48 PM Thanks Guys for your help. Much appreciated.
Work had me tied down, but soon going to follow up on what you told me above. |