Zcash
getmemoryinfo8 Credits
Gibt Informationen zur Speichernutzung zurück
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| mode | string | stats (Standard) gibt Nutzungsstatistiken zurück, mallocinfo gibt rohe Heap-Informationen zurück (XML, nur bei glibc-Builds). (optional) |
Rückgabewert
Typ
Object | string
Für stats ein Objekt mit locked: used, free, total, locked, chunks_used, chunks_free (Bytes oder Anzahlen). Für mallocinfo ein XML-String.
Codebeispiele
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getmemoryinfo",
"params": [
"stats"
]
}'