Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Only for legacy wallets.
pubkeystringREQUIREDlabelstringoptionalrescanbooleanoptionalcurl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"importpubkey","params":["pubkey"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/null