Bitcoin
Bitcoin
Bitcoin
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
getbestblockhash returns the 64-character hex hash of the block at the very top of the Bitcoin chain — the tip of the most-work fully-validated branch that the node currently follows. Because Bitcoin secures its ledger of BTC value with Proof-of-Work and produces a block roughly every ten minutes, this hash is the single anchor point for "where the chain is right now." Call it against the Bitcoin Core JSON-RPC endpoint at https://bitcoin.therpc.io/YOUR_API_KEY whenever you need a starting reference for a scan, a fresh tip to compare against, or the hash you will feed into getblock or getblockheader.
getblockcount so you hold both the tip hash and its height for confirmation math.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string | Hex block hash of the current chain tip. |
getbestblockhash and getblockcount far apart.