Related eBooks

I’m using bitcoin-core v23.0.

It seems to support watch-only wallets by setting disable_private_keys=true during wallet creation.

$ bitcoin-cli -regtest createwallet "test" true
{
  "name": "test",
  "warning": ""
}

But when I try to import an address into it, the command fails:

$ bitcoin-cli -regtest -rpcwallet=test importaddress "bcrt1qpsw3ts4v3srzxqk7f797sxhn22xhwcc3cdq0xe"
error code: -4
error message:
This type of wallet does not support this command

The importpubkey command fails, too

$ bitcoin-cli -regtest -rpcwallet=test importpubkey "035310a2af27b41544204c544b6df18a3a7cc217498d740fb9d1212c3af9fd8010"
error code: -4
error message:
This type of wallet does not support this command

So how to add a watch-only address to bitcoin-core?

And is it possible to derive HD addresses using a watch-only wallet? (I know it’s possible because Coinkite can do it)

source

By pplny

답글 남기기

이메일 주소는 공개되지 않습니다.

Translate »