@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines • 531 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'waitforblockheight', params: methodParams }, bitcoind);
}
//# sourceMappingURL=wait-for-block-height.js.map