[][src]Function ckb_std::high_level::load_header

pub fn load_header(index: usize, source: Source) -> Result<Header, SysError>

Load header

Return the header or a syscall error

Arguments

Example

let header = load_header(0, Source::HeaderDep).unwrap();