<p>Electrum has a thin client.  Does not need a full block chain.  </p>

<p>It is available as an RPM for Fedora which will run on Centos 7 =>  See <a href="https://www.rpmfind.net/linux/rpm2html/search.php?query=electrum" rel="nofollow noreferrer">https://www.rpmfind.net/linux/rpm2html/search.php?query=electrum</a>  and the Rawhide version is the latest which will run on Centos 7 - you will need to source out and install dependencies one at a time as it complains they are missing and retry until it intalls.  </p>

<p>See also <a href="http://docs.electrum.org/en/latest/merchant.html" rel="nofollow noreferrer">http://docs.electrum.org/en/latest/merchant.html</a>  It will run command line as a daemon or you can set up Remote X access with Qt but as stated by ThomasV it can be used completely command line who would know best of all.</p>

<p>You will need to open the ports needed 7777 and 9999 in the firewall and once you launch it issue a =>  netstat -anp | grep 7777 to make sure it is listening</p>

<p>Then do => electrum daemon load_wallet</p>

<p>Do =>  electrum -h - to see all the commands available from the command line of via a curl call.  See the link at the bottom for more on curl calls with software like PHP or website webstores</p>

<p>However if you leave it running as launched from the shell it is likely to die so . . . then set it up to start on boot and respawn if it fails</p>

<p>And the service file, in /etc/systemd/system/electrum.service:</p>

<p>[Unit]</p>

<p>Description=Electrum Bitcoin thin client</p>

<p>After=network.target</p>

<p>[Service]</p>

<p>Type=forking</p>

<p>User={USER}</p>

<p>Restart=on-failure</p>

<p>ExecStart=/usr/bin/electrum daemon start</p>

<p>[Install]</p>

<p>WantedBy=multi-user.target</p>

<p>Assuming above you change the "User" to  &lt;= whoever you will run it as and assuming you installed the rpm - the path to electrum is then correct as the path.  Enabling that with => systemctl enable electrum &lt;= (on Centos 7) will make sure Electrum always starts on boot.  You will need to load the wallet manually if it fails and restarts or you reboot however.  </p>

<p>see also <a href="https://bitcoin.stackexchange.com/questions/51499/checking-polling-a-balance-of-an-address-in-electrum-via-the-command-line-rpc/58992#58992">Checking/polling a balance of an address in Electrum via the command line/RPC</a></p>

CC BY-SA 3.0
2017-09-01T19:15:16.133Z
2017-09-01T19:15:16.133Z
wilburunion
<p>I need to set up linux server for web service that could generate bitcoin addresses and check the balance on them, etc (basically, receive payments in BTC). And I do not want to use third-party online wallets and services.</p>

<p>Original bitcoind client is too large now, you need almost 20 GB just to store blockchain files, and that'd be pretty expensive even for VPS.</p>

<p>Are there any thin command-line linux clients for this purpose? Electrum is GUI-based (it's command-line capable, but to set it up you need GUI anyway), Multibit too.</p>

CC BY-SA 3.0
2014-04-30T14:27:59.427Z
Note that even on a VPS, you can probably still use the GUI via something like X forwarding over SSH.  It may be slow but if you only need it once for setup, it could be fine.
Nate Eldredge
CC BY-SA 3.0
2014-04-30T19:07:59.503Z
Since I'm using Windows, the task of setting up X forwarding to VPS server seems rather difficult to me.
Sly
CC BY-SA 3.0
2014-05-01T07:54:30.997Z
You don't need GUI to setup an electrum wallet. try "electrum create"
ThomasV
CC BY-SA 3.0
2014-05-01T12:05:59.220Z
Are there command for electrum such as "create and get me new address"?
Sly
CC BY-SA 3.0
2014-05-01T16:33:52.627Z
Not hard at all: http://www.math.umn.edu/systems_guide/putty_xwin32.html
Tyler
<bitcoind><linux><services><thin-clients>
Thin command line-capable client for Linux
Sly
# Thin command line-capable client for Linux

(Asked by: username_0 on 2014-04-30)

I need to set up linux server for web service that could generate bitcoin addresses and check the balance on them, etc (basically, receive payments in BTC). And I do not want to use third-party online wallets and services.

Original bitcoind client is too large now, you need almost 20 GB just to store blockchain files, and that'd be pretty expensive even for VPS.

Are there any thin command-line linux clients for this purpose? Electrum is GUI-based (it's command-line capable, but to set it up you need GUI anyway), Multibit too.

**Tags:** bitcoind, linux, services, thin-clients

> **Comments:**
> **username_1**: Note that even on a VPS, you can probably still use the GUI via something like X forwarding over SSH.  It may be slow but if you only need it once for setup, it could be fine.  
> **username_0**: Since I'm using Windows, the task of setting up X forwarding to VPS server seems rather difficult to me.  
> **username_2**: You don't need GUI to setup an electrum wallet. try "electrum create"  
> **username_0**: Are there command for electrum such as "create and get me new address"?  
> **username_3**: Not hard at all: http://www.math.umn.edu/systems_guide/putty_xwin32.html  

---

## 1 answers

### Answer by username_4 on 2017-09-01. Score: 1

Electrum has a thin client. Does not need a full block chain.

It is available as an RPM for Fedora which will run on Centos 7 => See <https://www.rpmfind.net/linux/rpm2html/search.php?query=electrum> and the Rawhide version is the latest which will run on Centos 7 - you will need to source out and install dependencies one at a time as it complains they are missing and retry until it intalls.

See also <http://docs.electrum.org/en/latest/merchant.html> It will run command line as a daemon or you can set up Remote X access with Qt but as stated by username_2 it can be used completely command line who would know best of all.

You will need to open the ports needed 7777 and 9999 in the firewall and once you launch it issue a => netstat -anp | grep 7777 to make sure it is listening

Then do => electrum daemon load\_wallet

Do => electrum -h - to see all the commands available from the command line of via a curl call. See the link at the bottom for more on curl calls with software like PHP or website webstores

However if you leave it running as launched from the shell it is likely to die so . . . then set it up to start on boot and respawn if it fails

And the service file, in /etc/systemd/system/electrum.service:

[Unit]

Description=Electrum Bitcoin thin client

After=network.target

[Service]

Type=forking

User={USER}

Restart=on-failure

ExecStart=/usr/bin/electrum daemon start

[Install]

WantedBy=multi-user.target

Assuming above you change the "User" to <= whoever you will run it as and assuming you installed the rpm - the path to electrum is then correct as the path. Enabling that with => systemctl enable electrum <= (on Centos 7) will make sure Electrum always starts on boot. You will need to load the wallet manually if it fails and restarts or you reboot however.

see also [Checking/polling a balance of an address in Electrum via the command line/RPC](https://bitcoin.stackexchange.com/questions/51499/checking-polling-a-balance-of-an-address-in-electrum-via-the-command-line-rpc/58992#58992)


---

