pub fn find_cell_by_out_point(
out_point: OutPoint,
) -> Result<CellOutput, SysError>
Expand description
Find a cell by its OutPoint
Retrieves the CellOutput of a cell identified by the given OutPoint.
§Arguments
out_point
- The OutPoint identifying the cell to find
§Returns
Ok(CellOutput)
- The cell’s output data if foundErr(SysError)
- A system error if the operation fails
§Example
let out_point = OutPoint::new(...);
let cell_output = find_cell_by_out_point(out_point).unwrap();
§Errors
- Returns
SysError::ItemMissing
if the cell cannot be found - Returns
SysError::Encoding
if the CellOutput data is malformed
§Panics
This function can panic if the underlying data is too large, potentially causing an out-of-memory error.