Function ckb_std::high_level::load_input

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

Load input

Return the input or a syscall error

Arguments

  • index - index
  • source - source

Example

let input = load_input(0, Source::Input).unwrap();