• 官网
  • 中文
  • English
  • Russian
  • More language
Show / Hide Table of Contents
  • NEO Basics
    • About NEO
    • NEO Whitepaper
    • NEO Contract Whitepaper
    • Consensus
      • Consensus Whitepaper
      • Consensus Diagram
  • NEO Node
    • Introduction
    • NEO-GUI
      • Installing the Client
      • Wallet
      • Transactions
      • Registering and Distributing Assets
      • Interacting with Smart Contracts
      • Election and Voting
      • Other Features
    • NEO-CLI
      • Publishing from source
      • Installation
      • SeedList
      • NEO-CLI Command line
      • API Reference
        • v2.9.0 and later
          • dumpprivkey
          • getaccountstate
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblockheader
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • getwalletheight
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.8.0
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.7.6
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
    • NEO Plug-ins
    • NEO-Python
  • NEO Network
    • Test Network
    • Private Chain
      • Build a private chain
      • Build a private chain in an easy way
    • Local Blockchain
    • Synchronizing the blockchain faster
    • Network Protocol
  • NEO Utilities
    • NEO SDK
      • About NEO SDK
      • Common Uses
      • Account
      • Wallet
      • Transaction Construction
    • Blockchain Explorers
  • Smart Contract
    • Introduction
    • Quick Start
      • Getting Started
        • Using C# (Windows)
        • Using C# (macOS)
        • Using C# (ubuntu)
        • Using Java
        • Using Python
      • Limitations
      • Unit Testing
      • Deploying and Invoking Smart Contracts
    • Reference
      • API Reference
        • NEO
        • System
      • Framework
        • .NET Framework
          • NEO
            • Account
            • Asset
            • Block
            • Blockchain
            • Contract
            • Enrollment
            • Header
            • Runtime
            • Storage
            • StorageContext
            • Transaction
            • TransactionAttribute
            • TransactionInput
            • TransactionOutput
            • TriggerType
            • Validator
          • System
            • ExecutionEngine
    • Samples and Tutorials
      • Hello World
      • Lock Contract
      • Domain (Domain Name System)
      • Contract Authentication Tutorial
      • Deploying a Lock Contract
    • Parameters and Return Values
    • Contract Triggers
    • System Fees
  • FAQ
  • Document for Exchange Developers
    • v2.9.4
    • v2.9.3
    • v2.9.2
    • v2.9.1
    • v2.9.0
    • v2.8.0
    • v2.7.6

getbestblockhash Method

Returns the hash of the tallest block in the main chain.

Example

Request body:

{
   "jsonrpc": "2.0",
   "method": "getbestblockhash",
   "params":[],
   "id": 1
}

Response body:

{
   "jsonrpc": "2.0",
   "id": 1,
   "result": "0x773dd2dae4a9c9275290f89b56e67d7363ea4826dfd4fc13cc01cf73a44b0d0e"
}

Response Description:

Result: The hash of the tallest block in the main chain.

  • Improve this Doc
Back to top Copyright © 2014-2018 NEO