Author

Topic: Electrum Python Console (Read 1985 times)

legendary
Activity: 1204
Merit: 1002
RUM AND CARROTS: A PIRATE LIFE FOR ME
March 10, 2013, 05:22:42 PM
#3
This should allow us in theory to develop web applications on top of Electrum, no? I'm looking forward to this.
hero member
Activity: 742
Merit: 500
February 15, 2013, 09:57:14 PM
#2
Looking forward to it!  I wrote a script for generating bitcoin bills that can probably be way cleaned up once this is stable.
legendary
Activity: 1896
Merit: 1353
February 15, 2013, 11:34:14 AM
#1
The upcoming version of Electrum (1.7) will include an interactive python console. Wallet and Blockchain objects can be accessed through it. The goal is to make command-line functions accessible through the gui, but also to make Electrum fully scriptable.

Of course, this is a long-term goal; for the moment, the wallet code and methods needs to be cleaned, and users needs will need to be assessed. Thus, if you write scripts now, they will probably not be compatible with future versions, and will need to be adapted from time to time.

The risk of losing your money in a console misuse is minimal; I believe it is actually lower than the risk of accidentally deleting your wallet when you manage your files. Since Electrum is a deterministic wallet, that risk is mitigated by the possibility to recover your wallet from seed.

However, we will also need to deal with the possibility that some users write and distribute malicious scripts. That risk is probably more important. To deal with it, I guess we could create a kind of official repo for "reviewed" scripts, and populate it progressively with user contributions.
Jump to: