Module blockchain

Source
Expand description

Defines functions for getting the information about the Blockchain that is available in the context of this Transaction. This includes information about the ‘current’ Block, e.g., its height and timestamp, but also information about preceding Blocks.

Functions§

balance
Get the balance of current account
block_number
Get the number field of the Block that contains the Transaction which triggered this Contract call.
prev_block_hash
Get the prev_hash field of the Block that contains the Transaction which triggered this Contract call.
timestamp
Get the timestamp field of the Block that contains the Transaction which triggered this Contract call.