UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

20 lines (16 loc) 530 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetChainTipsParams = { bitcoind: Bitcoind } /** * getchaintips * * Return information about all known tips in the block tree, including the main chain as well as orphaned branches. * */ export function getChainTips(params: GetChainTipsParams) { const { bitcoind, ...methodParams } = params return request({ method: 'getchaintips', params: methodParams }, bitcoind) }