⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST getmemoryinfo

dropdown

方法 RPC getmemoryinfo 例如 Bitcoin Gold (BTG)

POST getmemoryinfo

返回包含有关内存使用信息的对象。

Parameters

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

确定返回哪种信息。

- “统计信息”返回有关守护程序中内存使用情况的一般统计信息。

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

Request

curl --location --request POST 'https://btg.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": 0,
            "free": 65536,
            "locked": 65536,
            "total": 65536,
            "used": 0
        }
    }
}