Function ckb_std::high_level::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();