Bitcoin
Bitcoin
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
getblockcount returns the height of the Bitcoin chain tip as a plain integer — the number of blocks on the most-work fully-validated branch, counting the genesis block as height 0. Since Bitcoin mines a new block about every ten minutes under Proof-of-Work, this number ticks up steadily and is the value you subtract against to count confirmations on a BTC payment. Call it against https://bitcoin.therpc.io/YOUR_API_KEY as the cheapest way to ask "how tall is the chain right now."
height − tx block height + 1.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| number | Current tip height as an integer. |