⚡ We welcome businesses to test our enterprise-grade service

bsv
Bitcoin-SV (BSV)

Method: POST getmemoryinfo

dropdown

方法 RPC getmemoryinfo 例如 Bitcoin-SV (BSV)

POST getmemoryinfo

返回一个包含内存使用信息的对象。

Parameters

mode - 字符串,可选,默认=“统计”

确定返回的信息类型。

- "stats" 返回有关守护进程中内存使用情况的一般统计信息。

- "mallocinfo" 返回一个描述低级堆状态的 XML 字符串(仅在使用 glibc 2.10+ 编译时可用)。

Request

curl --location --request POST 'https://bsv.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getmemoryinfo",
"params": [null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "locked": {
            "chunks_free": 1,
            "chunks_used": 1,
            "free": 65296,
            "locked": 65536,
            "total": 65536,
            "used": 240
        }
    }
}