Function load_cell

Source
pub fn load_cell(index: usize, source: Source) -> Result<CellOutput, SysError>
Available on crate feature ckb-types only.
Expand description

Load cell

Return the cell or a syscall error

§Arguments

  • index - index
  • source - source

§Example

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.