Bitcoin
Bitcoin
Bitcoin
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| number | Current tip height as an integer. |