UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

21 lines (17 loc) 518 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetNetTotalsParams = { bitcoind: Bitcoind } /** * getnettotals * * Returns information about network traffic, including bytes in, bytes out, * and current system time. * */ export function getNetTotals(params: GetNetTotalsParams) { const { bitcoind, ...methodParams } = params return request({ method: 'getnettotals', params: methodParams }, bitcoind) }