UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

20 lines (16 loc) 581 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetaddrmanInfoParams = { bitcoind: Bitcoind } /** * getaddrmaninfo * * Provides information about the node's address manager by returning the number of addresses in the `new` and `tried` tables and their sum for all networks. * */ export function getaddrmanInfo(params: GetaddrmanInfoParams) { const { bitcoind, ...methodParams } = params return request({ method: 'getaddrmaninfo', params: methodParams }, bitcoind) }