ruimarinho / bitcoin-core

A modern Bitcoin Core REST and RPC client.
477 stars 186 forks source link

Multiwallet question #127

Open rebatepokerapp opened 3 years ago

rebatepokerapp commented 3 years ago

I had two wallets loaded, but when I try to access one by new Client setting the wallet:'G:\bitcoin\testnet3\wallets\testwallet1\wallet.dat' even with wallet:'G:\bitcoin\testnet3\wallets\testwallet1\' not works. I had install the bitcoin core on windows 10 system, and when I request the wallets list I got [ 'G:\bitcoin\testnet3\wallets\testwallet1\', 'G:\bitcoin\testnet3\wallets\' ] The default wallet and the new one I create.

const Client= require('bitcoin-core'); const rpclient= new Client({network: 'testnet', wallet: 'G:\bitcoin\testnet3\wallets\testwallet1\wallet.dat', port: port, username: 'admin', password: '***'});

I request the balance and got this: Requested wallet does not exist or is not loaded

But the wallet appears on loaded wallet list. If you can help me I'll appreciate. Thanks in advance.