Zcash
getmemoryinfo8 crédits
Renvoie des informations sur l’utilisation de la mémoire
Paramètres
| Nom | Type | Description |
|---|---|---|
| mode | string | stats (par défaut) renvoie des statistiques d’utilisation, mallocinfo renvoie les informations brutes du heap (XML, uniquement sur les builds glibc). (facultatif) |
Valeur renvoyée
Type
Object | string
Pour stats, un objet avec locked : used, free, total, locked, chunks_used, chunks_free (octets ou nombres). Pour mallocinfo, une chaîne XML.
Exemples de code
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"
]
}'