Is there an RPC command to only output private keys with a balance from a wallet.dat?
Not private keys, but
listunspent can display your wallet's UTXOs.
The output includes the address that you can use with
dumpprivkey (
requires walletpassphrase for encrypted wallets).
Commands: