async fn submit_pm_settlement_command( state: &AppState, command: EngineCommand, ) -> Result<(), ApiError>