Bitcoin
Bitcoin
Bitcoin
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string | Hex block hash of the current chain tip. |
getbestblockhash and getblockcount far apart.