What does the Bitcoin Core RPC command importprivkey do?
Answer: Imports a private key in compatible legacy wallets.
Category: Wallet RPC.
Operational classification: Sensitive / secret-bearing.
Inspect the exact syntax:
bitcoin-cli -rpcwallet=<wallet-name> help importprivkey
Important: This is a Bitcoin Core wallet RPC, not a WALLET AI BITCOIN ENGINE wallet endpoint. It requires a compatible loaded Bitcoin Core wallet and appropriate permissions. Availability and behavior depend on Bitcoin Core version and wallet type; some legacy-wallet RPCs are unavailable for descriptor wallets or newer releases. Never put secrets, private keys, or passphrases into public terminals, shell history, logs, screenshots, or AI-agent transcripts.
Documentation:
Bitcoin Core RPC reference (choose your deployed release):
https://bitcoincore.org/en/doc/
Related guide:
https://thamer.org/docs/
