block

Macro block 

Source
macro_rules! block {
    (timestamp) => { ... };
    (height) => { ... };
}
Expand description

Get block fields

ยงUsage

use we_cdk::*;

#[action]
fn _constructor() {
    let block_timestamp: Integer = block!(timestamp);
    let block_height: Integer = block!(height);
}