Function load_header
Source pub fn load_header(index: usize, source: Source) -> Result<Header, SysError>
Available on crate feature ckb-types
only.
Expand description
Load header
Return the header or a syscall error
§Arguments
index
- index
source
- source
§Example
let header = load_header(0, Source::HeaderDep).unwrap();