Bitcoin Forum
September 24, 2018, 04:52:18 AM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
  Home Help Search Donate Login Register  
  Show Posts
Pages: [1]
1  Bitcoin / Electrum / Re: Electrum CLI multiple wallets on: September 06, 2018, 03:35:51 AM
So I've figured it out.

You can create a new wallet by adding a wallet address to the command like so:

Code:
electrum --testnet create -w ~/.electrum/testnet/wallets/myNewWallet

Then load the wallet onto the daemon (one electrum instance can run multiple wallets)

Code:
electrum --testnet load_wallet -w ~/.electrum/testnet/wallets/myNewWallet

Now you can run all the commands with either wallet like so:

Code:
electrum --testnet getbalance -w ~/.electrum/testnet/wallets/myNewWallet
electrum --testnet getbalance -w ~/.electrum/testnet/wallets/myOldWallet
2  Bitcoin / Electrum / Electrum CLI multiple wallets on: September 06, 2018, 02:48:44 AM
Hey guys, I'm looking for a way to run two wallets on the same server at the same time.
I know the electrum GUI supports two wallets at once, how do you manage two wallets with the same CLI?

I've tried to create a new wallet on the same daemon using the CLI, but it just returns with this error:

Code:
Error: Remove the existing wallet first!

I've seen some solutions online say to remove the old wallet first to solve the error above, but doesn't that means that i'll only have access to one wallet at a time?
I was thinking to run two daemon instances, since it seems that each daemon can only support one wallet. But I'm not sure how to go about doing that.


Any help would be greatly appreciated.
3  Bitcoin / Electrum / Re: Electrum exec createnewaddress requires password on: August 17, 2018, 10:16:21 AM
I have fixed the problem. Decided to use an expect script to interact with the electrum interface. Thanks.
4  Bitcoin / Electrum / Electrum exec createnewaddress requires password on: August 17, 2018, 06:57:30 AM
I'm trying run an Electrum wallet through an ec2 instance to receive Bitcoins.

So I've created a ec2 instance on AWS running the amazon linux AMI and installed Electrum.

I noticed that some other commands have the -W option to let me fill in the password like getprivatekeys:
 
Code:
electrum --testnet getprivatekeys -W $password
but, there are a few commands that do not have an option for me to input the password.

After creating an API to call exec() to help create new addresses, it worked for about a day (around 40-50 calls) and then now it requires me to input my password through the stdin every time I call the command:
Code:
electrum --testnet createnewaddress


Is there a way for me to call the commands in Electrum and input the password with one command? Does anyone know why the command suddenly requires a password?
Pages: [1]
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!