UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

16 lines (15 loc) 543 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * 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) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'dumpprivkey', params: methodParams }, bitcoind); }