ドキュメント
料金GitHubダッシュボード

Zcash

getmemoryinfo8クレジット

メモリ使用量に関する情報を返します

ネットワーク: zcash

パラメータ

名前型説明
modestringstats(デフォルト)は使用状況の統計を返し、mallocinfo は raw のヒープ情報(XML、glibc ビルドのみ)を返します。 (任意)

戻り値

型

Object | string

stats の場合は、locked を持つオブジェクト:used, free, total, locked, chunks_used, chunks_free(バイトまたは個数)。mallocinfo の場合は XML 文字列。

コード例

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"
  ]
}'