::
Licence: MIT Licence Author: Electron Cash Developers Language: Python Homepage: https://electroncash.org/
.. image:: https://d322cqt584bo4o.cloudfront.net/electron-cash/localized.svg :target: https://crowdin.com/project/electron-cash :alt: Help translate Electron Cash online
.. image:: ../../actions/workflows/run-tox.yml/badge.svg?branch=master :target: ../../actions/workflows/run-tox.yml?query=branch%3Amaster :alt: GitHub Actions Tests
.. image:: ../../actions/workflows/build.yml/badge.svg :target: ../../actions/workflows/build.yml :alt: GitHub Actions Build
.. image:: ../../actions/workflows/audit.yml/badge.svg :target: ../../actions/workflows/audit.yml :alt: GitHub Actions Python Audit
Note: If running from source, Python 3.8 or above is required to run Electron Cash. If your system lacks Python 3.8,
you have other options, such as the AppImage / binary releases <https://github.com/Electron-Cash/Electron-Cash/releases/>
or running from source using pyenv
(see section Running from source on old Linux
below).
macOS: It is recommended that macOS users run the binary .dmg <https://github.com/Electron-Cash/Electron-Cash/releases/>
as that's simpler to use and has everything included. Otherwise, if you want to run from source, see section Running from source on macOS
below.
Electron Cash is a pure python application forked from Electrum. If you want to use the Qt interface, install the Qt dependencies::
sudo apt-get install python3-pyqt5 python3-pyqt5.qtsvg
If you downloaded the official package (tar.gz), you can run Electron Cash from its root directory (called Electron Cash), without installing it on your system; all the python dependencies are included in the 'packages' directory. To run Electron Cash from its root directory, just do::
./electron-cash
You can also install Electron Cash on your system, by running this command::
sudo apt-get install python3-setuptools
python3 setup.py install
Compile the icons file for Qt (normally you can skip this step, run this command if icons are missing)::
sudo apt-get install pyqt5-dev-tools
pyrrc5 icons.qrc -o electroncash_gui/qt/icons.py
This will download and install the Python dependencies used by Electron Cash, instead of using the 'packages' directory.
If you cloned the git repository, you need to compile extra files before you can run Electron Cash. Read the next section, "Development Version".
Electron Cash natively support Ledger Nano S hardware wallet. If you plan to use you need an additional dependency, namely btchip. To install it run this command::
sudo pip3 install btchip-python
If you still have problems connecting to your Nano S please have a look at this
troubleshooting <https://support.ledger.com/hc/en-us/articles/115005165269-Fix-connection-issues>
_ section on Ledger website.
Check your python version >= 3.8, and install pyqt5, as instructed above in the
Getting started
section above or Running from source on old Linux
section below.
If you are on macOS, see the Running from source on macOS
_ section below.
Check out the code from Github::
git clone https://github.com/Electron-Cash/Electron-Cash
cd Electron-Cash
Install the python dependencies::
pip3 install -r contrib/requirements/requirements.txt --user
Create translations (optional)::
sudo apt-get install python-requests gettext
./contrib/make_locale
Compile libsecp256k1 (optional, yet highly recommended)::
sudo apt-get install libtool automake
./contrib/make_secp
For plugin development, see the plugin documentation <plugins/README.rst>
_.
Running unit tests (very optional, advanced users only)::
pip install tox
tox
Tox will take care of building a faux installation environment, and ensure that the mapped import paths work correctly.
If your Linux distribution has a different version of python 3 (such as python
3.5 in Debian 9), it is recommended to do a user dir install with
pyenv <https://github.com/pyenv/pyenv-installer>
_. This allows Electron
Cash to run completely independently of your system configuration.
pyenv <https://github.com/pyenv/pyenv-installer>
_ in your user
account. Follow the printed instructions about updating your environment
variables and .bashrc
, and restart your shell to ensure that they are
loaded.pyenv install 3.11.1
. This will download and compile that version of
python, storing it under .pyenv
in your home directory.cd
into the Electron Cash directory. Run pyenv local 3.11.1
which inserts
a file .python-version
into the current directory.pip install pyqt5
../electron-cash
. If you are using the git version,
then continue by following the Development version instructions above.You need to install either MacPorts <https://www.macports.org>
or HomeBrew <https://www.brew.sh>
. Follow the instructions on either site for installing (Xcode from Apple's developer site <https://developer.apple.com>
_ is required for either).
git clone https://github.com/Electron-Cash/Electron-Cash && cd Electron-Cash
brew install python3
or if using MacPorts: sudo port install python311
python3 -m pip install --user pyqt5
python3 -m pip install --user -r contrib/requirements/requirements.txt
./contrib/make_secp
.
This requires GNU tools and automake, install with brew: brew install coreutils automake
or if using MacPorts: sudo port install coreutils automake
./electron-cash
See contrib/build-linux/README.md <contrib/build-linux/README.md>
_.
See contrib/osx/ <contrib/osx/>
_.
See contrib/build-wine/ <contrib/build-wine>
_.
See android/ <android/>
_.
See ios/ <ios/>
_.