pub fn load_cell(index: usize, source: Source) -> Result<CellOutput, SysError>
ckb-types
Load cell
Return the cell or a syscall error
index
source
let cell_output = load_cell(0, Source::Input).unwrap();
Note: This function can panic if the underlying data is too large, potentially causing an out-of-memory error.