developer.bitcoin.org
developer.bitcoin.org copied to clipboard
[RPC] createwallet: cralify docs
Documentation for the createwallet RPC call is somewhat incomplete.
First, description section does not match with result section for Argument #1 - wallet_name: one mentions "path location" and while the other refers to "full path".
Second, what is the definition of a path? How RPC knows if it is a path or not? E.g. from inclusion of slashes (/ or \) in the string?
Finally, what about relative paths, like ./mywallet?
Also, consider adding an example of using path notation.
- https://developer.bitcoin.org/reference/rpc/createwallet.html
- https://github.com/bitcoin-dot-org/developer.bitcoin.org/blob/master/reference/rpc/createwallet.rst
The documentation is taken from the command line help which is defined in the sources of Bitcoin Core. Best would be to fix it there: https://github.com/bitcoin/bitcoin/blob/4db44acf2d5d3b40943c94b3960f42838255b7ad/src/wallet/rpcwallet.cpp#L2592
@cornelius Shall I transfer the issue, or it will be taken care of?
@ratijas Feel free to transfer the issue. I don't think the Bitcoin Core developers will see it here.