Bitcoin Forum
May 06, 2024, 08:46:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Error when using +1 wallets in Bitcoin Core testnet (denpamusic/php-bitcoinrpc) on: May 19, 2023, 07:12:11 PM
Hello everyone,

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 Denpa\Bitcoin\Exceptions\BadRemoteCallException: Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path)'.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!