比特幣(Bitcoin) RPC Blockchain API中gettxoutsetinfo的用法及代碼示例。
用法:
gettxoutsetinfo
返回有關未使用的事務輸出集的統計信息。
請注意,此調用可能需要一些時間。
返回結果
{
"height":n, (numeric) The current block height (index)
"bestblock": "hex", (string) The hash of the block at the tip of the chain
"transactions": n, (numeric) The number of transactions with unspent outputs
"txouts": n, (numeric) The number of unspent transaction outputs
"bogosize": n, (numeric) A meaningless metric for UTXO set size
"hash_serialized_2": "hash", (string) The serialized hash
"disk_size": n, (numeric) The estimated size of the chainstate on disk
"total_amount": x.xxx (numeric) The total amount
}
示例
bitcoin-cli gettxoutsetinfo
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "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 getdifficulty用法及代碼示例
- Bitcoin getmempoolancestors用法及代碼示例
- Bitcoin getmempooldescendants用法及代碼示例
- Bitcoin getmempoolentry用法及代碼示例
- Bitcoin getmempoolinfo用法及代碼示例
- Bitcoin getrawmempool用法及代碼示例
- Bitcoin gettxout用法及代碼示例
- Bitcoin gettxoutproof用法及代碼示例
- Bitcoin preciousblock用法及代碼示例
- Bitcoin pruneblockchain用法及代碼示例
- Bitcoin savemempool用法及代碼示例
- Bitcoin scantxoutset用法及代碼示例
- Bitcoin verifychain用法及代碼示例
注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin gettxoutsetinfo。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。