Function casper_contract::ext_ffi::casper_get_blocktime[][src]

pub unsafe extern "C" fn casper_get_blocktime(dest_ptr: *const u8)

This function gets the timestamp which will be in the block this deploy is included in. The return value is always a 64-bit unsigned integer, representing the number of milliseconds since the Unix epoch. It is up to the caller to ensure there are 8 bytes allocated at dest_ptr, otherwise data corruption in the wasm memory may occur.

Arguments

  • dest_ptr - pointer in wasm memory where to write the result