check_input_operation

Function check_input_operation 

Source
fn check_input_operation(
    op_input: OperationInput,
    api_cfg: &APIConfig,
    last_slot: Option<Slot>,
) -> RpcResult<SecureShareOperation>
Expand description

Checks the validity of an input operation.

This function takes an OperationInput, an APIConfig, and an optional Slot as input parameters. It performs various checks on the input operation and returns a SecureShareOperation if the checks pass. Otherwise, it returns an RpcResult with an appropriate error.

§Arguments

  • op_input - The input operation to be checked.
  • api_cfg - The API configuration used for checking the operation.
  • last_slot - An optional Slot representing the last slot used.

§Returns

Returns a RpcResult containing a SecureShareOperation if the input operation is valid. Otherwise, returns an RpcResult with an appropriate error.