Bitcoin
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| string | Hex block hash of the current chain tip. |
getbestblockhash and getblockcount far apart.