Friday, December 20, 2024
HomeBitcoinjson rpc - How do I set up Electrum Private Server with...

json rpc – How do I set up Electrum Private Server with bitcoind v28.0 on a RPi4?


I run a Bitcoin Core v28.0 on a Raspberry Pi4 and tried to make Electrum Private Server work.

I skilled a number of points throughout set up and execution. Any assist could be very a lot appreciated. And perhaps anyone else can use any of the information I gathered.

I bumped into these points:

  • First it was not potential to put in setuptools, I had to make use of sudo apt set up python3-setuptools as an alternative of sudo pip3 set up setuptools. Additionally it was not potential to run pip3 set up wheel and pip3 set up use .
  • I had first to create a python digital setting. I did this with sudo apt set up python3-venv,python3 -m venv foobar, supply foobar/bin/activate. Lastly
  • I put in with pip set up wheel and pip set up. as an alternative of pip set up --user . then deactivate to exit digital setting I compiled bitcoind v28.0 first with out pockets. This does not work. To win time I downloaded a precompiled model of v28.0.
  • I created a pockets with bitcoin-cli createwallet "default" "true" "true" "" "true" as an alternative of bitcoin-cli createwallet electrumpersonalserver true true "" false false true as a result of the latter gave the error

"BDB pockets creation is deprecated and shall be eliminated in a future launch. On this launch it may be re-enabled quickly with the -deprecatedrpc=create_bdb setting."

I ran electrum-personal-server --rescan ~/.eps/electrum-personal-server/config.cfg this went properly.

Once I lastly run electrum-personal-server ~/.eps/electrum-personal-server/config.cfg I get the error under:

INFO:2024-12-20 09:17:45,652: Beginning Electrum Private Server 0.2.4

INFO:2024-12-20 09:17:45,660: Logging to /tmp/electrumpersonalserver.log

INFO:2024-12-20 09:17:45,809: Displaying first 3 addresses of every grasp public key:

INFO:2024-12-20 09:17:45,809: Acquiring bitcoin addresses to watch . . .

INFO:2024-12-20 09:17:45,811: Importing 0 wallets and 1 watch-only addresses into the Bitcoin node

Traceback (most up-to-date name final):

File "/dwelling/bitcoin/.eps/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/bin/electrum-personal-server", line 8, in sys.exit(essential()) ^^^^^^

File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/frequent.py", line 481, in essential deterministicwallet.import_addresses(rpc, relevant_spks_addrs,

File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/deterministicwallet.py", line 29, in import_addresses rpc.name("importmulti", [watchonly_addr_param, {"rescan": False}])

File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/jsonrpc.py", line 122, in name elevate JsonRpcError(response["error"])

electrumpersonalserver.server.jsonrpc.JsonRpcError: {'code': -4, 'message': 'Solely legacy wallets are supported by this command'}

What can I do?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments