Bitcoin
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| string | Hex block hash of the current chain tip. |
getbestblockhash and getblockcount far apart.