UNPKG

bitcoin-cli-ts

Version:

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

15 lines (14 loc) 505 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * waitforblock "blockhash" ( timeout ) * * Waits for a specific new block and returns useful info about it. * Returns the current block on timeout or exit. * */ export function waitForBlock(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'waitforblock', params: methodParams }, bitcoind); }