Expected behavior is to get the balance of MyWallet. Actual behavior is the following error:
Unhandled rejection RpcError: Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path).
at getRpcResult (/home/jacob/bitcoin-daemon/node_modules/bitcoin-core/dist/src/parser.js:39:11)
at Client.rpc (/home/jacob/bitcoin-daemon/node_modules/bitcoin-core/dist/src/parser.js:82:14)
at Client.tryCatcher (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/promise.js:638:18)
at Request._callback (/home/jacob/bitcoin-daemon/node_modules/bluebird/js/release/nodeback.js:45:21)
at Request.self.callback (/home/jacob/bitcoin-daemon/node_modules/request/request.js:185:22)
at emitTwo (events.js:131:20)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/home/jacob/bitcoin-daemon/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/home/jacob/bitcoin-daemon/node_modules/request/request.js:1083:12)
This is with bitcoin-core@2.0.0 and bitcoind 0.17.0.
Here is the output from bitcoin-cli and bitcoind, which shows the wallet works well with bitcoin-cli:
The multi-wallet feature is only available on the next release (soon). You can add this package as a direct github dependency (branch master) and have early access to this multi-wallet feature.
Hi,
I am attempting to execute the following script:
Expected behavior is to get the balance of MyWallet. Actual behavior is the following error:
This is with
bitcoin-core@2.0.0
andbitcoind 0.17.0
.Here is the output from bitcoin-cli and bitcoind, which shows the wallet works well with bitcoin-cli:
bitcoind:
My wallet file is
/vol0/bitcoin/wallet.dat
I would appreciate any insight you could share on this. Thank you.