ltc

Litecoin (LTC)

Method: POST getmininginfo

dropdown
POST

getmininginfo

返回一个包含挖矿相关信息的对象

块,currentblocksize,currentblocktx,难度,错误,生成,genproclimit,hashespersec,networkhashps,pooledtx,testnet。

Parameters

-

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "blocks": 1688214,
        "chain": "main",
        "difficulty": 11788933.15348738,
        "networkhashps": 300839857168514.2,
        "pooledtx": 0,
        "warnings": ""
    }
}