@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines • 523 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* dumpprivkey "address"
*
* Reveals the private key corresponding to 'address'.
* Then the importprivkey can be used with this output
* Note: This command is only compatible with legacy wallets.
*
*/
export function dumpPrivkey(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'dumpprivkey', params: methodParams }, bitcoind);
}
//# sourceMappingURL=dump-privkey.js.map