比特幣(Bitcoin) RPC Control API中getrpcinfo的用法及代碼示例。
用法:
getrpcinfo
返回RPC服務器的詳細信息。
返回結果
{
"active_commands" (array) All active commands
[
{ (object) Information about an active command
"method" (string) The name of the RPC command
"duration" (numeric) The running time in microseconds
},...
]
}
示例
bitcoin-cli getrpcinfo
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
相關用法
注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin getrpcinfo。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。