bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 542 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* waitforblockheight height ( timeout )
*
* Waits for (at least) block height and returns the height and hash
* of the current tip.
* Returns the current block on timeout or exit.
*
*/
export function waitForBlockHeight(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'waitforblockheight', params: methodParams }, bitcoind);
}