UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

24 lines (20 loc) 621 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetBlockFilterParams = { bitcoind: Bitcoind /* The hash of the block */ blockhash: string /* The type name of the filter */ filtertype?: string } /** * getblockfilter "blockhash" ( "filtertype" ) * * Retrieve a BIP 157 content filter for a particular block. * */ export function getBlockFilter(params: GetBlockFilterParams) { const { bitcoind, ...methodParams } = params return request({ method: 'getblockfilter', params: methodParams }, bitcoind) }