Bitcoin
Bitcoin
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| number | Current tip height as an integer. |