UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

20 lines 981 B
import { Bitcoind, Json } from '../../types.js'; type GetBlockTemplateParams = { bitcoind: Bitcoind; template_request: Json; }; /** * getblocktemplate {"mode":"str","capabilities":["str",...],"rules":["segwit","str",...],"longpollid":"str","data":"hex"} * * If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'. * It returns data needed to construct a block to work on. * For full specification, see BIPs 22, 23, 9, and 145: * https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki * https://github.com/bitcoin/bips/blob/master/bip-0023.mediawiki * https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes * https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki * */ export declare function getBlockTemplate(params: GetBlockTemplateParams): Promise<any>; export {}; //# sourceMappingURL=get-block-template.d.ts.map