ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2024 feature!
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / BitcoinCore functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the number of times per second the sha256 function had to be run to calculate the last block. This number corresponds to a proof of work.
This makes it possible to determine the security level of the information returned by BitcoinCoreXXXX functions.
Example
// Get proof of work of latest block
HashRate is real
HashRate = BitcoinCoreHashRate()
IF ErrorOccurred THEN
Error()
RETURN
END
Trace("Proof of work: " + HashRate/1E18, "EH/s" + " (" + HashRate + ")")
Syntax
<Result> = BitcoinCoreHashRate()
<Result>: Real
Times per second the sha256 function had to be run to calculate the last block.
Remarks
To use BitcoinCoreXXXX functions, you need to configure a server on Bitcoin Core. For more details, see Setting up and using a Bitcoin Core server.
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/15/2024

Send a report | Local help