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 date and time when the latest block was created.
Remark: On average, a new block is produced by the network every 10 minutes. BitcoinCoreDateTimeLatestBlock can be used to:
  • determine whether the Bitcoin node has lost its connection/synchronization with the network.
  • have strong proof that a date/time has passed without having to rely on the date/time of the computer.
Example
// Get the date and time of the latest valid block in the chain
d is DateTime
d = BitcoinCoreDateTimeLatestBlock()
IF ErrorOccurred THEN
Error()
RETURN
END
Trace("Latest block:" + DateToString(d))
Syntax
<Result> = BitcoinCoreDateTimeLatestBlock()
<Result>: DateTime
Date and time the latest block was created.
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