UNPKG

bitcoin-cli-ts

Version:

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

14 lines (13 loc) 448 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * getdifficulty * * Returns the proof-of-work difficulty as a multiple of the minimum difficulty. * */ export function getDifficulty(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'getdifficulty', params: methodParams }, bitcoind); }