UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

14 lines 482 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * submitheader "hexdata" * * Decode the given hexdata as a header and submit it as a candidate chain tip if valid. * Throws when the header is invalid. * */ export function submitHeader(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'submitheader', params: methodParams }, bitcoind); } //# sourceMappingURL=submit-header.js.map