Bitcoin
Bitcoin
Bitcoin
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| number | Current tip height as an integer. |