UNPKG

bitcoin-cli-ts

Version:

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

16 lines (15 loc) 593 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * preciousblock "blockhash" * * Treats a block as if it were received before others with the same work. * A later preciousblock call can override the effect of an earlier one. * The effects of preciousblock are not retained across restarts. * */ export function preciousBlock(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'preciousblock', params: methodParams }, bitcoind); }