bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines (14 loc) • 501 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* 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) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'submitheader', params: methodParams }, bitcoind);
}