Why are there so few features in Bitcoin Core? It's not as user-friendly as Electrum, but Electrum doesn't support viewing P2PK records. Angry!
Only the basic wallet features are user-(
mainstream)-friendly in Bitcoin Core.
If you need to use commands, the wallet expects the user to have at least basic understanding of the client's RPC commands and json syntax.
Now to import P2PK; based from the quotes above,
Use
importdescriptors command containing the
P2PK output's "
public key" inside pk descriptor.
P2PK doesn't have an address so you'll need its public key to import. (
use mempool.space to see the p2pk's output's pubKey if you don't have it)
example P2PK descriptor:
"pk(043228e8f145c8c1fd8d92583c358285a358cba59791b58cc1f7ffad88ca37c9341016152f8200c39f2a82aa4107d74d706b14dbba431a516d43e0747a00e993fc)"
example import process:
First, get the checksum;
getdescriptorinfo "pk(043228e8f145c8c1fd8d92583c358285a358cba59791b58cc1f7ffad88ca37c9341016152f8200c39f2a82aa4107d74d706b14dbba431a516d43e0747a00e993fc)"
Take note of the checksum in the result, e.g.:
rpwefkgfImport the descriptor with the checksum after "
#" character.
importdescriptors "[{\"desc\": \"pk(043228e8f145c8c1fd8d92583c358285a358cba59791b58cc1f7ffad88ca37c9341016152f8200c39f2a82aa4107d74d706b14dbba431a516d43e0747a00e993fc)#rpwefkgf\",\"label\": \"your_label\",\"timestamp\": 0}]"
Change the timestamp from "
0 " to "
\"now\" " if you do not want to rescan right away in case if you will import more.