4,159 questions
4,372 answers
5,719 comments
Use the dumpprivkey command, which is documented on this page:
https://www.multichain.com/developers/json-rpc-api/