I have two wallets with Bitcoin Core testnet in the folder C:Users' User's DataData, in the folder C:Users' Data, in the folder C:Users' User's Data. I use this PHP library: https://github.com/denpamusic/php-bitcoinrpc
Next, in this path is the folder named wallet and test1 with the .dat files of each wallet
If only one wallet exists, it detects it and can work without even putting 'walletdir' or 'wallet' in $config. But if there are two wallets, it does not work when I put the path in:
$config = [
scheme' => 'http',
'host' => 'localhost',
'port' => 8332,
'user' => 'user',
'password' => 'pass',
'walletdir' => '/wallets/wallet'
I have tried a thousand ways, for example: '/testnet3/wallets/wallet/wallet', '/wallets/wallet/wallet.dat' and it doesn't work either.
The error I get back is this: 'Fatal error: Uncaught DenpaBitcoinExceptionsBadRemoteCallException: Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path)'.
submitted by /u/rbn_god