Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wallet, rpc: The getnewaddress RPC fails for external-signer wallets #21918

Closed
hebasto opened this issue May 11, 2021 · 3 comments
Closed

wallet, rpc: The getnewaddress RPC fails for external-signer wallets #21918

hebasto opened this issue May 11, 2021 · 3 comments

Comments

@hebasto
Copy link
Member

hebasto commented May 11, 2021

According to the doc/external-signer.md:

Create a wallet, this automatically imports the public keys

Instead I'm getting an error:

$ src/bitcoin-cli -rpcwallet=hww getnewaddress
error code: -4
error message:
Error: This wallet has no available keys
$ src/bitcoin-cli -rpcwallet=hww getwalletinfo
{
  "walletname": "hww",
  "walletversion": 169900,
  "format": "sqlite",
  "balance": 0.00000000,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 0,
  "keypoololdest": 9223372036854775807,
  "keypoolsize": 0,
  "keypoolsize_hd_internal": 0,
  "paytxfee": 0.00000000,
  "private_keys_enabled": false,
  "avoid_reuse": true,
  "scanning": false,
  "descriptors": true
}
@i5hi
Copy link

i5hi commented May 12, 2021

You might have missed "active":true in importdescriptors ?

@i5hi
Copy link

i5hi commented May 12, 2021

We had a similar issue here:

#21268

@hebasto
Copy link
Member Author

hebasto commented Aug 25, 2021

Cannot reproduce on the current master (3755dea).

Closing.

@hebasto hebasto closed this as completed Aug 25, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
@i5hi @hebasto and others