比特币(Bitcoin) RPC Blockchain API中getdifficulty的用法及代码示例。
用法:
getdifficulty
以最小难度的倍数返回proof-of-work难度。
返回结果
名称 |
类型 |
描述 |
---|---|---|
n.nnn |
numeric |
proof-of-work难度为最小难度的倍数。 |
示例
bitcoin-cli getdifficulty
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
相关用法
- Bitcoin getbestblockhash用法及代码示例
- Bitcoin getblock用法及代码示例
- Bitcoin getblockchaininfo用法及代码示例
- Bitcoin getblockcount用法及代码示例
- Bitcoin getblockhash用法及代码示例
- Bitcoin getblockheader用法及代码示例
- Bitcoin getblockstats用法及代码示例
- Bitcoin getchaintips用法及代码示例
- Bitcoin getchaintxstats用法及代码示例
- Bitcoin getmempoolancestors用法及代码示例
- Bitcoin getmempooldescendants用法及代码示例
- Bitcoin getmempoolentry用法及代码示例
- Bitcoin getmempoolinfo用法及代码示例
- Bitcoin getrawmempool用法及代码示例
- Bitcoin gettxout用法及代码示例
- Bitcoin gettxoutproof用法及代码示例
- Bitcoin gettxoutsetinfo用法及代码示例
- Bitcoin preciousblock用法及代码示例
- Bitcoin pruneblockchain用法及代码示例
- Bitcoin savemempool用法及代码示例
- Bitcoin scantxoutset用法及代码示例
- Bitcoin verifychain用法及代码示例
注:本文由纯净天空筛选整理自bitcoin.org大神的英文原创作品 Bitcoin getdifficulty。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。