@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
24 lines (20 loc) • 761 B
text/typescript
// Auto synced from github actions. Don't change this file
import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'
type GetMemoryInfoParams = {
bitcoind: Bitcoind
/* determines what kind of information is returned.
- "stats" returns general statistics about memory usage in the daemon.
- "mallocinfo" returns an XML string describing low-level heap state (only available if compiled with glibc). */
mode?: string
}
/**
* getmemoryinfo ( "mode" )
*
* Returns an object containing information about memory usage.
*
*/
export function getMemoryInfo(params: GetMemoryInfoParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'getmemoryinfo', params: methodParams }, bitcoind)
}